Skip to main content

risky_users

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

Overview

Namerisky_users
TypeResource
Identra_id.identity_protection.risky_users

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
historyarrayThe activity related to user risk level change
isDeletedbooleanIndicates whether the user is deleted. The possible values are: true, false.
isProcessingbooleanIndicates whether the backend is processing a user's risky state.
riskDetailDetails of the detected risk.
riskLastUpdatedDateTimestring (date-time)The date and time that the risky user was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$)
riskLevelLevel of the detected risky user. The possible values are: low, medium, high, hidden, none, unknownFutureValue.
riskStateState of the user's risk. The possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue.
userDisplayNamestringRisky user display name.
userPrincipalNamestringRisky user principal name.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectrisky_user_idRead the properties and relationships of a riskyUser object.
listselectGet a list of the riskyUser objects and their properties.
insertinsert
updateupdaterisky_user_id
deletedeleterisky_user_idIf-Match
confirm_compromisedexecConfirm one or more riskyUser objects as compromised. This action sets the targeted user's risk level to high.
confirm_safeexecConfirm one or more riskyUser objects as safe. This action sets the targeted user's risk level to none.
dismissexecDismiss the risk of one or more riskyUser objects. This action sets the targeted user's risk level to none.

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
risky_user_idstringThe unique identifier of riskyUser
If-MatchstringETag

SELECT examples

Read the properties and relationships of a riskyUser object.

SELECT
id,
history,
isDeleted,
isProcessing,
riskDetail,
riskLastUpdatedDateTime,
riskLevel,
riskState,
userDisplayName,
userPrincipalName
FROM entra_id.identity_protection.risky_users
WHERE risky_user_id = '{{ risky_user_id }}' -- required
;

INSERT examples

No description available.

INSERT INTO entra_id.identity_protection.risky_users (
id,
isDeleted,
isProcessing,
riskDetail,
riskLastUpdatedDateTime,
riskLevel,
riskState,
userDisplayName,
userPrincipalName,
history
)
SELECT
'{{ id }}',
{{ isDeleted }},
{{ isProcessing }},
'{{ riskDetail }}',
'{{ riskLastUpdatedDateTime }}',
'{{ riskLevel }}',
'{{ riskState }}',
'{{ userDisplayName }}',
'{{ userPrincipalName }}',
'{{ history }}'
RETURNING
id,
history,
isDeleted,
isProcessing,
riskDetail,
riskLastUpdatedDateTime,
riskLevel,
riskState,
userDisplayName,
userPrincipalName
;

UPDATE examples

No description available.

UPDATE entra_id.identity_protection.risky_users
SET
id = '{{ id }}',
isDeleted = {{ isDeleted }},
isProcessing = {{ isProcessing }},
riskDetail = '{{ riskDetail }}',
riskLastUpdatedDateTime = '{{ riskLastUpdatedDateTime }}',
riskLevel = '{{ riskLevel }}',
riskState = '{{ riskState }}',
userDisplayName = '{{ userDisplayName }}',
userPrincipalName = '{{ userPrincipalName }}',
history = '{{ history }}'
WHERE
risky_user_id = '{{ risky_user_id }}' --required
RETURNING
id,
history,
isDeleted,
isProcessing,
riskDetail,
riskLastUpdatedDateTime,
riskLevel,
riskState,
userDisplayName,
userPrincipalName;

DELETE examples

No description available.

DELETE FROM entra_id.identity_protection.risky_users
WHERE risky_user_id = '{{ risky_user_id }}' --required
AND If-Match = '{{ If-Match }}'
;

Lifecycle Methods

Confirm one or more riskyUser objects as compromised. This action sets the targeted user's risk level to high.

EXEC entra_id.identity_protection.risky_users.confirm_compromised
@@json=
'{
"userIds": "{{ userIds }}"
}'
;