public function Users::get in Auth0 Single Sign On 8.2
Get a single User by ID. Required scopes:
- "read:users" - For any call to this endpoint.
- "read:user_idp_tokens" - To retrieve the "access_token" field for logged-in identities.
Parameters
string $user_id User ID to get.:
Return value
mixed
Throws
\Exception Thrown by the HTTP client when there is a problem with the API call.
File
- vendor/
auth0/ auth0-php/ src/ API/ Management/ Users.php, line 28
Class
- Users
- Class Users. Handles requests to the Users endpoint of the v2 Management API.
Namespace
Auth0\SDK\API\ManagementCode
public function get($user_id) {
return $this->apiClient
->method('get')
->addPath('users', $user_id)
->call();
}