Skip to main content

group_schemas

Creates, updates, deletes, gets or lists a group_schemas resource.

Overview

Namegroup_schemas
TypeResource
Idokta.meta.group_schemas

Fields

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstringURI of group schema
namestringName of the schema
$schemastringJSON schema version identifier
_linksobjectSpecifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of related resources and lifecycle operations.
createdstringTimestamp when the schema was created
definitionsobject
descriptionstringDescription for the schema
lastUpdatedstringTimestamp when the schema was last updated
propertiesobjectGroup object properties
titlestringUser-defined display name for the schema
typestringType of root schema

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_group_schemaselectsubdomainRetrieves the group schema

The User Types feature does not extend to groups. All groups use the same group schema. Unlike user schema operations, group schema operations all specify default and don't accept a schema ID.
update_group_schemaupdatesubdomainUpdates the group profile schema. This updates, adds, or removes one or more custom profile properties in a group schema. Currently Okta does not support changing base group profile properties.

> Note: You must set properties explicitly to null to remove them from the schema; otherwise, POST is interpreted as a partial update.

The User Types feature does not extend to groups. All groups use the same group schema. Unlike user schema operations, group schema operations all specify default and don't accept a schema ID.

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

SELECT examples

Retrieves the group schema

The User Types feature does not extend to groups. All groups use the same group schema. Unlike user schema operations, group schema operations all specify default and don't accept a schema ID.

SELECT
id,
name,
$schema,
_links,
created,
definitions,
description,
lastUpdated,
properties,
title,
type
FROM okta.meta.group_schemas
WHERE subdomain = '{{ subdomain }}' -- required
;

UPDATE examples

Updates the group profile schema. This updates, adds, or removes one or more custom profile properties in a group schema. Currently Okta does not support changing base group profile properties.

> Note: You must set properties explicitly to null to remove them from the schema; otherwise, POST is interpreted as a partial update.

The User Types feature does not extend to groups. All groups use the same group schema. Unlike user schema operations, group schema operations all specify default and don't accept a schema ID.

UPDATE okta.meta.group_schemas
SET
data__definitions = '{{ definitions }}',
data__description = '{{ description }}',
data__properties = '{{ properties }}',
data__title = '{{ title }}'
WHERE
subdomain = '{{ subdomain }}' --required
RETURNING
id,
name,
$schema,
_links,
created,
definitions,
description,
lastUpdated,
properties,
title,
type
;