WordPress at a glance
function is not described

refresh_user_details() WP 3.0.0

Cleans the user cache for a specific user.

No Hooks.

Return

true/false/Int. The ID of the refreshed user or false if the user does not exist.

Usage

refresh_user_details( $id );
$id(int) (required)
The user ID.

Changelog

Since 3.0.0 Introduced.

Code of refresh user details: wp-admin/includes/ms.php WP 5.2.2

<?php
function refresh_user_details( $id ) {
	$id = (int) $id;

	if ( ! $user = get_userdata( $id ) ) {
		return false;
	}

	clean_user_cache( $user );

	return $id;
}