This article describes how to add Group Owners via the Okta API.
- Okta Identity Governance (OIG)
- Lifecycle Management
- API call
- POST /api/v1/groups/{{groupId}}/owners
- The body of the request must contain the Okta User ID that should be added, along with the type of user they are.
- Example Body: { "id": "00u1bb0jz0u8pQEDc697", "type": "USER" }
- A response similar to the following example should be received:
{
"id": "00u1bb0jz0u8pQEDc697",
"type": "USER",
"resolved": true,
"originId": null,
"originType": "OKTA_DIRECTORY",
"displayName": "Test User",
"lastUpdated": "Tue May 09 15:41:49 UTC 2023"
}
As this is an OIG endpoint, this would be an OIG component. The OIG SKUs must be enabled for this to run. If the OIG SKUs are not enabled, a permissions error will be received when trying to run the API request.
