Skip to main content

user_risk

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

Overview

Nameuser_risk
TypeResource
Idokta.users.user_risk

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
_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.
riskLevelstringThe risk level associated with the user

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_user_riskselectsubdomainRetrieves the user risk object for a user ID
upsert_user_riskreplacesubdomainUpserts (creates or updates) the user risk object for a user 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 user risk object for a user ID

SELECT
_links,
riskLevel
FROM okta.users.user_risk
WHERE subdomain = '{{ subdomain }}' -- required;

REPLACE examples

Upserts (creates or updates) the user risk object for a user ID

REPLACE okta.users.user_risk
SET
data__riskLevel = '{{ riskLevel }}'
WHERE
subdomain = '{{ subdomain }}' --required
RETURNING
_links,
reason,
riskLevel;