Skip to main content

user_assigned_role_governance

Creates, updates, deletes, gets or lists a user_assigned_role_governance resource.

Overview​

Nameuser_assigned_role_governance
TypeResource
Idokta.users.user_assigned_role_governance

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
_linksobjectSpecifies link relations (see Web Linking) available for the sources using the JSON Hypertext Application Language specification.
grantsarray

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_user_assigned_role_governanceselectuserId, roleAssignmentId, subdomainRetrieves 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.

NameDatatypeDescription
roleAssignmentIdstringThe id of the role assignment
subdomainstring(default: my-org)
userIdstringID of an existing Okta user

SELECT examples​

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
;