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
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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_group_ownersselectsubdomainsearch, after, limitLists all owners for a specific group
assign_group_ownerinsertgroupId, subdomainAssigns a group owner
delete_group_ownerdeletesubdomainDeletes 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
subdomainstringThe domain of your organization. This can be a provided subdomain of an official okta domain (okta.com, oktapreview.com, etc) or one of your configured custom domains. (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 subdomain = '{{ subdomain }}' -- required
AND search = '{{ search }}'
AND after = '{{ after }}'
AND limit = '{{ limit }}';

INSERT examples

Assigns a group owner

INSERT INTO okta.groups.owners (
data__id,
data__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 subdomain = '{{ subdomain }}' --required;