WordPress at a glance
filter is not described

rest_prepare_user filter-hook . WP 4.7.0

Filters user data returned from the REST API.

Usage

add_filter( 'rest_prepare_user', 'filter_function_name_9235', 10, 3 );
function filter_function_name_9235( $response, $user, $request ){
	// filter...

	return $response;
}
$response(WP_REST_Response)
The response object.
$user(object)
User object used to create response.
$request(WP_REST_Request)
Request object.

Where the hook is called

WP_REST_Users_Controller::prepare_item_for_response()
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php 948
return apply_filters( 'rest_prepare_user', $response, $user, $request );

Where the hook is used (in WP core)

Does not used.