Skip to content

Assign a group owner

Request

OAuth 2.0 scope:
  • okta.groups.manage

Assigns a group owner

Path
groupIdstringrequired

The id of the group

Example:00g1emaKYZTWRYYRRTSK
Bodyapplication/jsonrequired
idstring

The id of the group owner

typestring(GroupOwnerType)

The entity type of the owner

Enum:"GROUP""USER"
curl -i -X POST \
  https://subdomain.okta.com/api/v1/groups/00g1emaKYZTWRYYRRTSK/owners \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "00u1cmc03xjzePoWD0h8",
    "type": "USER"
  }'

Responses

Success

Bodyapplication/json
displayNamestringread-only

The display name of the group owner

idstring

The id of the group owner

lastUpdatedstring, (date-time)read-only

Timestamp when the group owner was last updated

originIdstring

The ID of the app instance if the originType is APPLICATION. This value is NULL if originType is OKTA_DIRECTORY.

originTypestring(GroupOwnerOriginType)

The source where group ownership is managed

Enum:"APPLICATION""OKTA_DIRECTORY"
resolvedboolean

If originTypeis APPLICATION, this parameter is set to FALSE until the owner's originId is reconciled with an associated Okta ID.

typestring(GroupOwnerType)

The entity type of the owner

Enum:"GROUP""USER"
Response
{ "id": "00u1cmc03xjzePoWD0h8", "type": "USER", "resolved": true, "originId": null, "originType": "OKTA_DIRECTORY", "displayName": "Oliver Putnam", "lastUpdated": "Wed Mar 29 18:34:31 UTC 2023" }