Logo
IdentityNow API Documentation

Get a Role

GET {{baseUrl}}/roles/:id

This API returns a Role by its ID.

A token with API, ORGADMIN, ROLEADMIN, or ROLESUBADMIN authority is required to call this API. In addition, a token with ROLESUBADMIN authority may only call this API if all Access Profiles included in the Role are associated to Sources with management workgroups of which the ROLE_SUBADMIN is a member.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Accept
string




RESPONSES

status OK

{ "name": "Role 2567", "owner": { "type": "IDENTITY", "id": "2c9180a46faadee4016fb4e018c20639", "name": "support" }, "id": "2c918086749d78830174a1a40e121518", "created": "2021-03-01T22:32:58.104Z", "modified": "2021-03-02T20:22:28.104Z", "description": "Urna amet cursus pellentesque nisl orci maximus lorem nisl euismod fusce morbi placerat adipiscing maecenas nisi tristique et metus et lacus sed morbi nunc nisl maximus magna arcu varius sollicitudin elementum enim maecenas nisi id ipsum tempus fusce diam ipsum tortor.", "accessProfiles": [ { "id": "ff808081751e6e129f1518161919ecca", "type": "ACCESS_PROFILE", "name": "Access Profile 2567" }, { "id": "ff808081751e6e129f1518161919ecca", "type": "ACCESS_PROFILE", "name": "Access Profile 2567" } ], "entitlements": [ { "type": "ENTITLEMENT", "id": "2c91809773dee32014e13e122092014e", "name": "CN=entitlement.490efde5,OU=OrgCo,OU=ServiceDept,DC=HQAD,DC=local" }, { "type": "ENTITLEMENT", "id": "2c91809773dee32014e13e122092014e", "name": "CN=entitlement.490efde5,OU=OrgCo,OU=ServiceDept,DC=HQAD,DC=local" } ], "membership": { "type": "IDENTITY_LIST", "criteria": { "operation": "EQUALS", "key": { "type": "ACCOUNT", "property": "attribute.email", "sourceId": "2c9180867427f3a301745aec18211519" }, "stringValue": "carlee.cert1c9f9b6fd@mailinator.com", "children": [ { "operation": "EQUALS", "key": { "type": "ACCOUNT", "property": "attribute.email", "sourceId": "2c9180867427f3a301745aec18211519" }, "stringValue": "carlee.cert1c9f9b6fd@mailinator.com", "children": [ { "operation": "EQUALS", "key": { "type": "ACCOUNT", "property": "attribute.email", "sourceId": "2c9180867427f3a301745aec18211519" }, "stringValue": "carlee.cert1c9f9b6fd@mailinator.com" }, { "operation": "EQUALS", "key": { "type": "ACCOUNT", "property": "attribute.email", "sourceId": "2c9180867427f3a301745aec18211519" }, "stringValue": "carlee.cert1c9f9b6fd@mailinator.com" } ] }, { "operation": "EQUALS", "key": { "type": "ACCOUNT", "property": "attribute.email", "sourceId": "2c9180867427f3a301745aec18211519" }, "stringValue": "carlee.cert1c9f9b6fd@mailinator.com", "children": [ { "operation": "EQUALS", "key": { "type": "ACCOUNT", "property": "attribute.email", "sourceId": "2c9180867427f3a301745aec18211519" }, "stringVal
Curl
curl -X GET 'https://tenant.api.identitynow.com/v3/roles/:id' -H 'Accept: application/json'

ENDPOINTS