- Assign a collection to principals
- okta.governance.collections.manage
- APP_ADMIN
Assigns a collection to principals
The assignment can be for a limited time or indefinite. This operation is idempotent. If the assignment already exists, it's updated with the new values.
Attributes of collection assignment
The date on which the principal's access expires. This property is specified in ISO 8601 duration format.
The time zone, in IANA format, for the end date of the user access
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. |
- https://subdomain.okta.comhttps://subdomain.okta.com/governance/api/v2/collections/{collectionId}/assignments
Assign principals to the collection. The assignment can be for a limited time or indefinite.
curl -i -X POST \
'https://subdomain.okta.com/governance/api/v2/collections/{collectionId}/assignments' \
-H 'Content-Type: application/json' \
-d '[
{
"actor": "ACCESS_REQUEST",
"principal": {
"externalId": "00u174cGuGxVFp4EY0g4",
"type": "OKTA_USER"
},
"expirationTime": "2024-04-30T23:59:59Z",
"timeZone": "America/Toronto"
},
{
"actor": "ACCESS_REQUEST",
"principal": {
"externalId": "00u174cGuGxVFp4EY0g5",
"type": "OKTA_USER"
}
}
]'A list of assigned principals
The date on which the principal's access expires. This property is specified in ISO 8601 duration format.
The time zone, in IANA format, for the end date of the user access
The flow that triggered the grant. Includes system-set values that can appear on read responses but can't be submitted on write requests.
| 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 resource collection id
List of assigned users to a collection
[ { "id": "ass28w6vzKKultXP98g5", "actor": "ACCESS_REQUEST", "principal": { … }, "expirationTime": "2024-04-30T23:59:59Z", "timeZone": "America/Toronto", "assignmentType": "INDIVIDUAL" }, { "id": "ass28w6vzKKultXP98g6", "actor": "ACCESS_REQUEST", "principal": { … }, "assignmentType": "INDIVIDUAL" } ]