> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get User Info

> Return a user's profile using an Auth0 Access Token when the openid scope was granted.

## Endpoint

`GET /userinfo`

Given the Auth0 Access Token obtained during login, this endpoint returns a user's profile. This endpoint will work only if `openid` was granted as a scope for the Access Token. The user profile information included in the response depends on the scopes requested. For example, a scope of just `openid` may return less information than a scope of `openid profile email`.

### Remarks

* The sample auth0.js script uses the library version 8. If you are using auth0.js version 7, please see this [reference guide](https://auth0.com/docs/libraries/auth0js/v7).
* The auth0.js `parseHash` method requires that your tokens are signed with `RS256`, rather than `HS256`.
* To return `user_metadata` or other custom information from this endpoint, add a custom claim to the ID token with an [Action](https://auth0.com/docs/secure/tokens/json-web-tokens/create-custom-claims.md#create-custom-claims). For more information refer to [User profile claims and scope](https://auth0.com/docs/get-started/apis/scopes/openid-connect-scopes.md).
* This endpoint will return three HTTP Response Headers that provide relevant data on its rate limits:
  * `X-RateLimit-Limit`: Number of requests allowed per minute.
  * `X-RateLimit-Remaining`: Number of requests available. Each new request reduces this number by 1. For each minute that passes, requests are added back, so this number increases by 1 each time.
  * `X-RateLimit-Reset`: Remaining time until the rate limit (`X-RateLimit-Limit`) resets. The value is in [UTC epoch seconds](https://en.wikipedia.org/wiki/Unix_time).
* Standard claims return the latest value for the user (unless the value comes from an external IdP).
* Custom claims always return the latest value of the claim.

### Learn More

* [Auth0.js v8 Reference: Extract the authResult and get user info](https://auth0.com/docs/libraries/auth0js#extract-the-authresult-and-get-user-info)
* [Auth0 API Rate Limit Policy](https://auth0.com/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy)

## Headers

**Authorization** `string` *required*

Bearer token. For example: `Bearer {yourAccessToken}`

**DPoP** `string`

A DPoP proof for the request. This is optional and only required if your application uses Demonstrating Proof-of-Possession.

## Response Schema

\{}

application/json

**sub** `string`

The user's unique identifier.

**name** `string`

The user's full name.

**given\_name** `string`

The user's given name.

**family\_name** `string`

The user's family name.

**middle\_name** `string`

The user's middle name.

**nickname** `string`

The user's nickname.

**preferred\_username** `string`

The user's preferred username.

**profile** `string`

URL of the user's profile page.

**picture** `string`

URL of the user's profile picture.

**website** `string`

URL of the user's website.

**email** `string`

The user's email address.

**email\_verified** `boolean`

Whether the user's email address has been verified.

**gender** `string`

The user's gender.

**birthdate** `string`

The user's date of birth.

**zoneinfo** `string`

The user's time zone.

**locale** `string`

The user's locale.

**phone\_number** `string`

The user's phone number.

**phone\_number\_verified** `boolean`

Indicates whether the user's phone number has been verified.

**address** `object`

The user's address.

**updated\_at** `integer`

The time of the user's last information update, in Unix time.

## Response Messages

| Status | Description |
| - | - |
| 200 | User profile retrieved successfully. |
| 401 | Unauthorized, invalid or missing access token. |
