Zitadel Preview Docs

Get user by ID

GET
/users/{user_id}

Authorization

oauth2 user.read
AuthorizationBearer <token>

In: header

Scope: user.read

Path Parameters

user_id*string

Query Parameters

team_id?string

The unique identifier of the team

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/users/user_id_12345"
{  "id": "user_id_12345",  "schema": "string",  "attributes": {},  "metadata": {    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z",    "status": "active",    "lifecycle_owner_team_id": "string"  }}
{  "code": "string",  "message": "string",  "details": {}}
{  "code": "string",  "message": "string",  "details": {}}

{  "code": "auth.unauthorized",  "message": "The request lacks valid authentication credentials."}