Skip to main content

classifications

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

Overview

Nameclassifications
TypeResource
Idokta.users.classifications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
lastUpdatedstring (date-time)The timestamp when the user classification was last updated
typestringThe type of user classification

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_user_classificationselectsubdomainRetrieves a user's classification
replace_user_classificationreplacesubdomainReplaces the user's classification

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 a user's classification

SELECT
lastUpdated,
type
FROM okta.users.classifications
WHERE subdomain = '{{ subdomain }}' -- required;

REPLACE examples

Replaces the user's classification

REPLACE okta.users.classifications
SET
data__type = '{{ type }}'
WHERE
subdomain = '{{ subdomain }}' --required
RETURNING
lastUpdated,
type;