user_assigned_role_governance
Creates, updates, deletes, gets or lists a user_assigned_role_governance resource.
Overview​
| Name | user_assigned_role_governance |
| Type | Resource |
| Id | okta.users.user_assigned_role_governance |
Fields​
The following fields are returned by SELECT queries:
- get_user_assigned_role_governance
| Name | Datatype | Description |
|---|---|---|
_links | object | Specifies link relations (see Web Linking) available for the sources using the JSON Hypertext Application Language specification. |
grants | array |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_user_assigned_role_governance | select | userId, roleAssignmentId, subdomain | Retrieves the governance sources of a role (identified by roleAssignmentId) that's assigned to a user (identified by userId) |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
roleAssignmentId | string | The id of the role assignment |
subdomain | string | (default: my-org) |
userId | string | ID of an existing Okta user |
SELECT examples​
- get_user_assigned_role_governance
Retrieves the governance sources of a role (identified by roleAssignmentId) that's assigned to a user (identified by userId)
SELECT
_links,
grants
FROM okta.users.user_assigned_role_governance
WHERE userId = '{{ userId }}' -- required
AND roleAssignmentId = '{{ roleAssignmentId }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;