Identity API - Getting Identity Roles Information

This method provides information about the identity roles. An indentity can have one or more roles.

GET /{tenant}/api/identity/v1/roles

The request

Request parameters

none

Example request

GET /{tenant}/api/identity/v1/roles 
Authorization: Bearer 57600
Host: www.theidentityhub.com
GET /{tenant}/api/identity/v1/roles?access_token=57600

The response

If the method call is successfull, "The Identity Hub" returns the information about the roles of the identity in JSON format.

Response parameters

Name Values Description
name A string The role name.

Example response

            [
  {
    "name": "roleone",
  },
  {
    "name": "roletwo",
  }
]

Related sections

GET {tenant}/api/identity/v1
GET {tenant}/api/identity/v1/{id}
GET {tenant}/api/identity/v1/accounts
GET {tenant}/api/identity/v1/{id}/accounts
GET {tenant}/api/identity/v1/friends
GET {tenant}/api/identity/v1/{id}/friends
GET {tenant}/api/identity/v1/roles
GET {tenant}/api/identity/v1/{id}/roles
PUT {tenant}/api/identity/v1/