classifications
Creates, updates, deletes, gets or lists a classifications
resource.
Overview
Name | classifications |
Type | Resource |
Id | okta.users.classifications |
Fields
The following fields are returned by SELECT
queries:
- get_user_classification
Name | Datatype | Description |
---|---|---|
lastUpdated | string (date-time) | The timestamp when the user classification was last updated |
type | string | The type of user classification |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_user_classification | select | subdomain | Retrieves a user's classification | |
replace_user_classification | replace | subdomain | Replaces 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.
Name | Datatype | Description |
---|---|---|
subdomain | string | The 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
- get_user_classification
Retrieves a user's classification
SELECT
lastUpdated,
type
FROM okta.users.classifications
WHERE subdomain = '{{ subdomain }}' -- required;
REPLACE
examples
- replace_user_classification
Replaces the user's classification
REPLACE okta.users.classifications
SET
data__type = '{{ type }}'
WHERE
subdomain = '{{ subdomain }}' --required
RETURNING
lastUpdated,
type;