Skip to main content

risk_detections

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

Overview

Namerisk_detections
TypeResource
Identra_id.identity_protection.risk_detections

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
activityIndicates the activity type the detected risk is linked to.
activityDateTimestring (date-time)Date and time that the risky activity occurred. 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 look like this: 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])$)
additionalInfostringAdditional information associated with the risk detection in JSON format. For example, '[{/'Key/':/'userAgent/',/'Value/':/'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36/'}]'. Possible keys in the additionalInfo JSON string are: userAgent, alertUrl, relatedEventTimeInUtc, relatedUserAgent, deviceInformation, relatedLocation, requestId, correlationId, lastActivityTimeInUtc, malwareName, clientLocation, clientIp, riskReasons. For more information about riskReasons and possible values, see riskReasons values.
correlationIdstringCorrelation ID of the sign-in associated with the risk detection. This property is null if the risk detection is not associated with a sign-in.
detectedDateTimestring (date-time)Date and time that the risk was detected. 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 looks like this: 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])$)
detectionTimingTypeTiming of the detected risk (real-time/offline). The possible values are: notDefined, realtime, nearRealtime, offline, unknownFutureValue.
ipAddressstringProvides the IP address of the client from where the risk occurred.
lastUpdatedDateTimestring (date-time)Date and time that the risk detection 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 look like this: 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])$)
locationLocation of the sign-in.
requestIdstringRequest ID of the sign-in associated with the risk detection. This property is null if the risk detection is not associated with a sign-in.
riskDetailDetails of the detected risk.
riskEventTypestringThe type of risk event detected. The possible values are adminConfirmedUserCompromised, anomalousToken, anomalousUserActivity, anonymizedIPAddress, generic, impossibleTravel, investigationsThreatIntelligence, suspiciousSendingPatterns, leakedCredentials, maliciousIPAddress,malwareInfectedIPAddress, mcasSuspiciousInboxManipulationRules, newCountry, passwordSpray,riskyIPAddress, suspiciousAPITraffic, suspiciousBrowser,suspiciousInboxForwarding, suspiciousIPAddress, tokenIssuerAnomaly, unfamiliarFeatures, unlikelyTravel. If the risk detection is a premium detection, will show generic. For more information about each value, see Risk types and detection.
riskLevelLevel of the detected risk. The possible values are: low, medium, high, hidden, none, unknownFutureValue.
riskStateThe state of a detected risky user or sign-in. The possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue.
sourcestringSource of the risk detection. For example, activeDirectory.
tokenIssuerTypeIndicates the type of token issuer for the detected sign-in risk. The possible values are: AzureAD, ADFederationServices, UnknownFutureValue.
userDisplayNamestringThe user principal name (UPN) of the user.
userIdstringUnique ID of the user.
userPrincipalNamestringThe user principal name (UPN) of the user.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectrisk_detection_idRead the properties and relationships of a riskDetection object.
listselectGet a list of the riskDetection objects and their properties.
insertinsert
updateupdaterisk_detection_id
deletedeleterisk_detection_idIf-Match

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
risk_detection_idstringThe unique identifier of riskDetection
If-MatchstringETag

SELECT examples

Read the properties and relationships of a riskDetection object.

SELECT
id,
activity,
activityDateTime,
additionalInfo,
correlationId,
detectedDateTime,
detectionTimingType,
ipAddress,
lastUpdatedDateTime,
location,
requestId,
riskDetail,
riskEventType,
riskLevel,
riskState,
source,
tokenIssuerType,
userDisplayName,
userId,
userPrincipalName
FROM entra_id.identity_protection.risk_detections
WHERE risk_detection_id = '{{ risk_detection_id }}' -- required
;

INSERT examples

No description available.

INSERT INTO entra_id.identity_protection.risk_detections (
id,
activity,
activityDateTime,
additionalInfo,
correlationId,
detectedDateTime,
detectionTimingType,
ipAddress,
lastUpdatedDateTime,
location,
requestId,
riskDetail,
riskEventType,
riskLevel,
riskState,
source,
tokenIssuerType,
userDisplayName,
userId,
userPrincipalName
)
SELECT
'{{ id }}',
'{{ activity }}',
'{{ activityDateTime }}',
'{{ additionalInfo }}',
'{{ correlationId }}',
'{{ detectedDateTime }}',
'{{ detectionTimingType }}',
'{{ ipAddress }}',
'{{ lastUpdatedDateTime }}',
'{{ location }}',
'{{ requestId }}',
'{{ riskDetail }}',
'{{ riskEventType }}',
'{{ riskLevel }}',
'{{ riskState }}',
'{{ source }}',
'{{ tokenIssuerType }}',
'{{ userDisplayName }}',
'{{ userId }}',
'{{ userPrincipalName }}'
RETURNING
id,
activity,
activityDateTime,
additionalInfo,
correlationId,
detectedDateTime,
detectionTimingType,
ipAddress,
lastUpdatedDateTime,
location,
requestId,
riskDetail,
riskEventType,
riskLevel,
riskState,
source,
tokenIssuerType,
userDisplayName,
userId,
userPrincipalName
;

UPDATE examples

No description available.

UPDATE entra_id.identity_protection.risk_detections
SET
id = '{{ id }}',
activity = '{{ activity }}',
activityDateTime = '{{ activityDateTime }}',
additionalInfo = '{{ additionalInfo }}',
correlationId = '{{ correlationId }}',
detectedDateTime = '{{ detectedDateTime }}',
detectionTimingType = '{{ detectionTimingType }}',
ipAddress = '{{ ipAddress }}',
lastUpdatedDateTime = '{{ lastUpdatedDateTime }}',
location = '{{ location }}',
requestId = '{{ requestId }}',
riskDetail = '{{ riskDetail }}',
riskEventType = '{{ riskEventType }}',
riskLevel = '{{ riskLevel }}',
riskState = '{{ riskState }}',
source = '{{ source }}',
tokenIssuerType = '{{ tokenIssuerType }}',
userDisplayName = '{{ userDisplayName }}',
userId = '{{ userId }}',
userPrincipalName = '{{ userPrincipalName }}'
WHERE
risk_detection_id = '{{ risk_detection_id }}' --required
RETURNING
id,
activity,
activityDateTime,
additionalInfo,
correlationId,
detectedDateTime,
detectionTimingType,
ipAddress,
lastUpdatedDateTime,
location,
requestId,
riskDetail,
riskEventType,
riskLevel,
riskState,
source,
tokenIssuerType,
userDisplayName,
userId,
userPrincipalName;

DELETE examples

No description available.

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