role_assignment_governance_grant
Creates, updates, deletes, gets or lists a role_assignment_governance_grant resource.
Overview​
| Name | role_assignment_governance_grant |
| Type | Resource |
| Id | okta.users.role_assignment_governance_grant |
Fields​
The following fields are returned by SELECT queries:
- get_role_assignment_governance_grant
| Name | Datatype | Description |
|---|---|---|
_links | object | Specifies link relations (see Web Linking) available for the resources using the JSON Hypertext Application Language specification. |
bundleId | string | id of the entitlement bundle |
expirationDate | string (date-time) | The expiration date of the entitlement bundle |
grantId | string | id of the grant |
type | string | The grant type (CUSTOM, ENTITLEMENT-BUNDLE) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_role_assignment_governance_grant | select | userId, roleAssignmentId, grantId, subdomain | Retrieves 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.
| Name | Datatype | Description |
|---|---|---|
grantId | string | Grant ID |
roleAssignmentId | string | The id of the role assignment |
subdomain | string | (default: my-org) |
userId | string | ID of an existing Okta user |
SELECT examples​
- get_role_assignment_governance_grant
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
;