Skip to content

Retrieve all user role governance sources

Request

OAuth 2.0 scope:
  • okta.roles.read

Retrieves the governance sources of a role (identified by roleAssignmentId) that's assigned to a user (identified by userId)

Path
userIdstringrequired

ID of an existing Okta user

Example:00ub0oNGTSWTBKOLGLNR
roleAssignmentIdstringrequired

The id of the role assignment

Example:JBCUYUC7IRCVGS27IFCE2SKO
curl -i -X GET \
  https://subdomain.okta.com/api/v1/users/00ub0oNGTSWTBKOLGLNR/roles/JBCUYUC7IRCVGS27IFCE2SKO/governance

Responses

Success

Bodyapplication/json
grantsArray of objects(RoleGovernanceSource)
Response
{ "grants": [ { … }, { … } ], "_links": { "self": { … }, "assignee": { … } } }