Get Admin Role Based on Admin Role ID
/iam/governance/selfservice/api/v1/adminroles/{adminroleid}
Returns the admin role details of the specified admin role id. The attributes that are to be returned can be specified as part of the query parameter named "fields". For example: The URI to get the name and description attributes only for a particular admin role is /adminroles/{adminroleid}?fields=displayName, description. The attributes are to be specified in a Comma-separated list.
Request
- application/json
-
adminroleid(required): string
Admin Role ID
-
fields: string
Attributes to be returned in the result. Comma-separated attributes are accepted. Sample value for supported attributes is "ROLE_ID, ROLE_NAME, ROLE_DISPLAY_NAME, DESCRIPTION and CUSTOM"
Response
- application/json
200 Response
-
ResponseTime: string
Captures the time in milliseconds taken for processing the request.
object
-
custom:
string
-
delayedEvaluationSet:
string
-
description:
string
-
displayName:
string
-
id:
string
-
links:
array links
-
name:
string
-
scoped:
string
401 Response
404 Response
500 Response
Examples
This example retrieves the information for a given admin role. The information shown here is against a pseudo system and serves as a prototype.
cuRL Example
curl -H "Content-Type: application/json" -X GET -u username:password https://pseudo.com/iam/governance/selfservice/api/v1/adminroles/12
Example of GET Response Body
The following example shows the contents of the response body in JSON format.
{ "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/adminroles/12" } ], "id": "12", "name": "OrclOIMApplicationInstanceViewerRole", "description": "Role can view assigned application instances.", "displayName": "Application Instance Viewer", "delayedEvaluationSet": true, "scoped": true, "custom": false }