curl --request GET \
--url https://{controlPlaneURL}/api/svc/v1/users/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "<string>",
"email": "<string>",
"userName": "<string>",
"tenantName": "<string>",
"metadata": {
"sub": "<string>",
"imageURL": "<string>",
"displayName": "<string>",
"userObject": {},
"inviteAccepted": true,
"registeredInIdp": true,
"preference": {}
},
"roles": [
"<string>"
],
"active": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Get User associated with provided User id
curl --request GET \
--url https://{controlPlaneURL}/api/svc/v1/users/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "<string>",
"email": "<string>",
"userName": "<string>",
"tenantName": "<string>",
"metadata": {
"sub": "<string>",
"imageURL": "<string>",
"displayName": "<string>",
"userObject": {},
"inviteAccepted": true,
"registeredInIdp": true,
"preference": {}
},
"roles": [
"<string>"
],
"active": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
User Id
Returns the User associated with provided User id
The response is of type object
.
Was this page helpful?