Skip to content

Retrieve the user role governance source resources

Request

OAuth 2.0 scope:
  • okta.roles.read

Retrieves the resources of a governance source (identified by grantId) for 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
grantIdstringrequired

Grant ID

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

Responses

Success

Bodyapplication/json
resourcesArray of objects(RoleGovernanceResource)
Response
{ "resources": [ { … }, { … } ], "_links": { "next": { … }, "self": { … } } }