Pass a user object to expanded_params in generated Rest code.