/api/identity/v1/roles
Returns the roles of an Identity.
Request
GET /{tenant}/api/identity/v1/roles
GET /{tenant}/api/identity/v1/{id}/roles
Authentication
For more information on how to authenticate see How To: Call The Identity Hub API
Request Parameters
Name | Value | Description | Required |
---|---|---|---|
id | The identityId of the identity | Instructs The Identity Hub to return the roles of the identity matching the provided identityId. The caller must be authorized to access the identity. | No (defaults to authenticated identity) |
Example Request
GET /{tenant}/api/identity/v1/12487978/roles
Authorization: Bearer puDWcq-4-xLwoG6y0DwZRA
Host: www.theidentityhub.com
Response
If the method call is successful returns the roles of the identity in JSON format.
Name | Value | Description |
---|---|---|
name | The role name | The name of the role |
Example Response
[
{
"name": "Administrator"
}
{
"name": "HRManager"
}
]