Okta Admin Management API
/Admin Roles
//
Retrieve a user role assi...
OAuth 2.0 scope:
- okta.roles.read
Retrieves a role assigned to a user (identified by userId). The roleAssignmentId parameter is the unique identifier for either a standard role assignment object or a custom role resource set binding object.
- https://subdomain.okta.comhttps://subdomain.okta.com/api/v1/users/{userId}/roles/{roleAssignmentId}
curl -i -X GET \
https://subdomain.okta.com/api/v1/users/00ub0oNGTSWTBKOLGLNR/roles/JBCUYUC7IRCVGS27IFCE2SKOSuccess
Role assignment type
| Enum Value | Description |
|---|---|
| USER | The role is assigned to a user |
| GROUP | The role is assigned to a group |
| CLIENT | The role is assigned to a client app |
| Role type | Description |
|---|---|
| ACCESS_CERTIFICATIONS_ADMIN | Access Certifications Administrator IAM-based standard role |
| ACCESS_REQUESTS_ADMIN | Access Requests Administrator IAM-based standard role |
| API_ACCESS_MANAGEMENT_ADMIN | Access Management Administrator standard role |
| APP_ADMIN | Application Administrator standard role |
| CUSTOM | Custom admin role |
| GROUP_MEMBERSHIP_ADMIN | Group Membership Administrator standard role |
| HELP_DESK_ADMIN | Help Desk Administrator standard role |
| ORG_ADMIN | Organizational Administrator standard role |
| READ_ONLY_ADMIN | Read-Only Administrator standard role |
| REPORT_ADMIN | Report Administrator standard role |
| SUPER_ADMIN | Super Administrator standard role |
| USER_ADMIN | User Administrator standard role |
| WORKFLOWS_ADMIN | Workflows Administrator IAM-based standard role |
Enum:"ACCESS_CERTIFICATIONS_ADMIN""ACCESS_REQUESTS_ADMIN""API_ACCESS_MANAGEMENT_ADMIN""APP_ADMIN""CUSTOM""GROUP_MEMBERSHIP_ADMIN""HELP_DESK_ADMIN""ORG_ADMIN""READ_ONLY_ADMIN""REPORT_ADMIN"
Discriminator
Specifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification.
Response
{ "id": "ra1b8anIk7rx7em7L0g4", "label": "Super Organization administrator", "type": "SUPER_ADMIN", "status": "ACTIVE", "created": "2015-09-06T15:28:47.000Z", "lastUpdated": "2015-09-06T15:28:47.000Z", "assignmentType": "USER", "_links": { "assignee": { … } } }