Users
Get user
Get user data for the given ID.
get/api/users/{userId}
Request
- Base URL: https://[tenant_id].logto.app
- URL: https://[tenant_id].logto.app/api/users/{userId}
- Auth: OAuth 2 (client credentials, token URL /oidc/token, scopes: all)
Path parameters
userIdstring required
The unique identifier of the user.
Query parameters
includeSsoIdentitiesstring
If it's provided with a truthy value (true, 1, yes), each user in the response will include a ssoIdentities property containing a list of SSO identities associated with the user.
includePasswordHashstring
If it's provided with a truthy value (true, 1, yes), the response will include the passwordDigest and passwordAlgorithm fields. These fields are omitted by default for security reasons, and always omitted when the request carries the logto-read-only-access: true header.
Response
User data for the given ID.