Request user information


# Request user information

User information is encoded inside the ID token returned along with the access token. In addition to that, OpenID Connect provides the userinfo endpoint to obtain user information as a payload. The application should send a request with the access token to invoke the userinfo endpoint.

Userinfo endpoint

https://api.asgardeo.io/t/<organization_name>/oauth2/userinfo
1

Sample request

Default sample response
Asgardeo returns only the sub claim if there are no user attributes shared with the application.

{
  "sub": "e46ffa67-100d-4329-9460-b8251d446518"
}
1
2
3

You can customize the user information in the response by configuring user attributes on the registered application.