Skip to main content

role_assignment_governance_grant

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

Overview​

Namerole_assignment_governance_grant
TypeResource
Idokta.users.role_assignment_governance_grant

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
_linksobjectSpecifies link relations (see Web Linking) available for the resources using the JSON Hypertext Application Language specification.
bundleIdstringid of the entitlement bundle
expirationDatestring (date-time)The expiration date of the entitlement bundle
grantIdstringid of the grant
typestringThe grant type (CUSTOM, ENTITLEMENT-BUNDLE)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_role_assignment_governance_grantselectuserId, roleAssignmentId, grantId, subdomainRetrieves a governance source (identified by grantId) for 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
grantIdstringGrant ID
roleAssignmentIdstringThe id of the role assignment
subdomainstring(default: my-org)
userIdstringID of an existing Okta user

SELECT examples​

Retrieves a governance source (identified by grantId) for a role (identified by roleAssignmentId) that's assigned to a user (identified by userId)

SELECT
_links,
bundleId,
expirationDate,
grantId,
type
FROM okta.users.role_assignment_governance_grant
WHERE userId = '{{ userId }}' -- required
AND roleAssignmentId = '{{ roleAssignmentId }}' -- required
AND grantId = '{{ grantId }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;