Skip to Content
Docs

Get user by id

GET
/users/{userId}

required scopes: contextual:users:read

Authorization

jwt
headerAuthorizationBearer <JWT>

Path Parameters

Header Parameters

Response Body

application/json
  1. response
id*string
Length1 <= length
roles*array<>
Items1 <= items
fullName?string
email?string
_metaData*
Example Request
curl -X GET 'https://auth.your-tenant-id.my.contextual.io/api/v1/users/{userId}'
Example Response
{  "id": "string",  "roles": [    "string"  ],  "fullName": "string",  "email": "string",  "_metaData": {    "id": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}