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 (LITE, STANDARD) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_user_classification | select | userId, subdomain | Retrieves a user's classification | |
replace_user_classification | replace | userId, 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 | (default: my-org) |
userId | string | ID of an existing Okta user |
SELECT examples​
- get_user_classification
Retrieves a user's classification
SELECT
lastUpdated,
type
FROM okta.users.classifications
WHERE userId = '{{ userId }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;
REPLACE examples​
- replace_user_classification
Replaces the user's classification
REPLACE okta.users.classifications
SET
type = '{{ type }}'
WHERE
userId = '{{ userId }}' --required
AND subdomain = '{{ subdomain }}' --required
RETURNING
lastUpdated,
type;