Creates a grant request with a specific grant type (grantType)
The grant request parameters depend on the selected grantType
Scheduler specific settings applicable to a grant.
The flow that triggered the grant request
| Enum Value | Description |
|---|---|
| API | The grant request was triggered from the API. |
| ACCESS_REQUEST | The grant request was triggered from an access request. |
| NONE | The grant request wasn't triggered from the API, an access request, or the Admin Console. |
| ADMIN | The grant request was triggered from the Admin Console. |
Additive grant type for entitlement bundle.
- ENTITLEMENT-BUNDLE
- CUSTOM
- POLICY
- ENTITLEMENT
- Grant a bundle to a principal
- Grant a bundle to a principal, with an expiration date
- Grant using a policy |tooltip| Grant using a policy
- Custom grant with entitlements |tooltip| Custom grant using entitlements with single and multi value properties
- Revoke all grants for a principal |tooltip| Revoke all grants for a principal. This will also take away access to the resource.
- Entitlement grant with values |tooltip| Grant specific entitlement values to a principal. These entitlements are added to any existing granted entitlements.
curl -i -X POST \
https://okta-subdomain.pixtulate.com/governance/api/v1/grants \
-H 'Content-Type: application/json' \
-d '{
"grantType": "ENTITLEMENT-BUNDLE",
"entitlementBundleId": "enbfxqCAJWWGELFTYCCC",
"actor": "ACCESS_REQUEST",
"targetPrincipal": {
"externalId": "00ufxqCAJWWGELFTYCCC",
"type": "OKTA_USER"
}
}'A successful grant creation operation
The id of the Okta user who created the resource
The ISO 8601 formatted date and time when the resource was created
The ISO 8601 formatted date and time when the object was last updated
The id of the Okta user who last updated the object
Type of grant. Reconciliation creates an IMPORT grant to record an entitlement that the app reported, but that Okta wasn't already governing.
The entitlement bundle id
The Okta user in ORN format
The action to be taken for a grant
The flow that triggered the grant request
| Enum Value | Description |
|---|---|
| API | The grant request was triggered from the API. |
| ACCESS_REQUEST | The grant request was triggered from an access request. |
| NONE | The grant request wasn't triggered from the API, an access request, or the Admin Console. |
| ADMIN | The grant request was triggered from the Admin Console. |
The Okta resource in ORN format
See the ORN format for supported resources.
Collection of entitlements and associated value identifiers
Scheduler specific settings applicable to a grant.
The state of the particular grant setting
- Grant a bundle to a principal
- Grant a bundle to a principal, with expiration
- Grant a resource with policy |tooltip| Grant a resource with policy
- Custom Grant with entitlements |tooltip| Grant a resource with custom entitlements
- Entitlement grant with values
{ "id": "0ggb0oNGTSWTBKOLGLNR", "created": "2022-05-24T14:15:22Z", "createdBy": "00ub0oNGTSWTBKOLGLNR", "lastUpdated": "2022-05-24T14:15:22Z", "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR", "grantType": "ENTITLEMENT-BUNDLE", "entitlementBundleId": "enbfxqCAJWWGELFTYCCC", "action": "ALLOW", "actor": "ACCESS_REQUEST", "targetResourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ", "target": { "externalId": "0oafxqCAJWWGELFTYASJ", "type": "APPLICATION" }, "targetPrincipalOrn": "orn:okta:directory:00o11edPwGqbUrsDm0g4:users:00ub0oNGTSWTBKOLGLNR", "targetPrincipal": { "externalId": "00ub0oNGTSWTBKOLGLNR", "type": "OKTA_USER" }, "status": "ACTIVE", "_links": { "entitlementBundle": { … }, "self": { … } } }