Skip to main content

owners

Creates, updates, deletes, gets or lists an owners resource.

Overview​

Nameowners
TypeResource
Idokta.groups.owners

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe id of the group owner
displayNamestringThe display name of the group owner
lastUpdatedstring (date-time)Timestamp when the group owner was last updated
originIdstringThe ID of the app instance if the originType is APPLICATION. This value is NULL if originType is OKTA_DIRECTORY.
originTypestringThe source where group ownership is managed (APPLICATION, OKTA_DIRECTORY)
resolvedbooleanIf originTypeis APPLICATION, this parameter is set to FALSE until the owner's originId is reconciled with an associated Okta ID.
typestringThe entity type of the owner (GROUP, USER)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_group_ownersselectgroupId, subdomainsearch, after, limitLists all owners for a specific group
assign_group_ownerinsertgroupId, subdomainAssigns a group owner
delete_group_ownerdeletegroupId, ownerId, subdomainDeletes a group owner from a specific group

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.

NameDatatypeDescription
groupIdstringThe id of the group
ownerIdstringThe id of the group owner
subdomainstring(default: my-org)
afterstringSpecifies the pagination cursor for the next page of owners
limitinteger (int32)Specifies the number of owner results in a page

SELECT examples​

Lists all owners for a specific group

SELECT
id,
displayName,
lastUpdated,
originId,
originType,
resolved,
type
FROM okta.groups.owners
WHERE groupId = '{{ groupId }}' -- required
AND subdomain = '{{ subdomain }}' -- required
AND search = '{{ search }}'
AND after = '{{ after }}'
AND limit = '{{ limit }}'
;

INSERT examples​

Assigns a group owner

INSERT INTO okta.groups.owners (
id,
type,
groupId,
subdomain
)
SELECT
'{{ id }}',
'{{ type }}',
'{{ groupId }}',
'{{ subdomain }}'
RETURNING
id,
displayName,
lastUpdated,
originId,
originType,
resolved,
type
;

DELETE examples​

Deletes a group owner from a specific group

DELETE FROM okta.groups.owners
WHERE groupId = '{{ groupId }}' --required
AND ownerId = '{{ ownerId }}' --required
AND subdomain = '{{ subdomain }}' --required
;