Skip to main content

risk_scoring

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

Overview

Namerisk_scoring
TypeResource
Idcloudflare.zero_trust.risk_scoring

Fields

The following fields are returned by SELECT queries:

Risk events.

NameDatatypeDescription
namestring
emailstring
eventsarray
last_reset_timestring (date-time)
risk_levelstring (low, medium, high)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_id, user_idRetrieves the detailed risk score breakdown for a specific user, including contributing factors.
resetexecaccount_id, user_idResets risk scores for specified users, clearing their accumulated risk history.

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
account_idstringThe Cloudflare account ID.
user_idstringThe user ID.

SELECT examples

Retrieves the detailed risk score breakdown for a specific user, including contributing factors.

SELECT
name,
email,
events,
last_reset_time,
risk_level
FROM cloudflare.zero_trust.risk_scoring
WHERE account_id = '{{ account_id }}' -- required
AND user_id = '{{ user_id }}' -- required
;

Lifecycle Methods

Resets risk scores for specified users, clearing their accumulated risk history.

EXEC cloudflare.zero_trust.risk_scoring.reset
@account_id='{{ account_id }}' --required,
@user_id='{{ user_id }}' --required
;