Skip to content

Retrieve the user's risk

Request

OAuth 2.0 scope:
  • okta.userRisk.read

Retrieves the user risk object for a user ID

Path
userIdstringrequired

ID of an existing Okta user

Example:00ub0oNGTSWTBKOLGLNR
curl -i -X GET \
  https://subdomain.okta.com/api/v1/users/00ub0oNGTSWTBKOLGLNR/risk

Responses

OK

Bodyapplication/json
riskLevelstring(UserRiskLevelAll)

The risk level associated with the user

Enum:"HIGH""LOW""MEDIUM""NONE"
Discriminator
reasonstring(UserRiskReason)

The reason for the user's current risk level. Defaults to override.by.admin when set by an admin without a custom reason.

Example:"override.by.admin"
Response
{ "riskLevel": "HIGH", "reason": "override.by.admin", "_links": { "self": { … }, "user": { … } } }