Skip to main content

service_principal_risk_detections

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

Overview

Nameservice_principal_risk_detections
TypeResource
Identra_id.identity_protection.service_principal_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 when 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 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. This string value is represented as a JSON object with the quotations escaped.
appIdstringThe unique identifier for the associated application.
correlationIdstringCorrelation ID of the sign-in activity associated with the risk detection. This property is null if the risk detection is not associated with a sign-in activity.
detectedDateTimestring (date-time)Date and time when 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 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])$)
detectionTimingTypeTiming of the detected risk , whether real-time or offline. The possible values are: notDefined, realtime, nearRealtime, offline, unknownFutureValue.
ipAddressstringProvides the IP address of the client from where the risk occurred.
keyIdsarrayThe unique identifier for the key credential associated with the risk detection.
lastUpdatedDateTimestring (date-time)Date and time when the risk detection was last updated. (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 from where the sign-in was initiated.
requestIdstringRequest identifier of the sign-in activity associated with the risk detection. This property is null if the risk detection is not associated with a sign-in activity. Supports $filter (eq).
riskDetailDetails of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden.
riskEventTypestringThe type of risk event detected. The possible values are: investigationsThreatIntelligence, generic, adminConfirmedServicePrincipalCompromised, suspiciousSignins, leakedCredentials, anomalousServicePrincipalActivity, maliciousApplication, suspiciousApplication.
riskLevelLevel of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden. The possible values are: low, medium, high, hidden, none.
riskStateThe state of a detected risky service principal or sign-in activity. The possible values are: none, dismissed, atRisk, confirmedCompromised.
servicePrincipalDisplayNamestringThe display name for the service principal.
servicePrincipalIdstringThe unique identifier for the service principal. Supports $filter (eq).
sourcestringSource of the risk detection. For example, identityProtection.
tokenIssuerTypeIndicates the type of token issuer for the detected sign-in risk. The possible values are: AzureAD.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_principal_risk_detection_idRead the properties and relationships of a servicePrincipalRiskDetection object.
listselectRetrieve the properties of a collection of servicePrincipalRiskDetection objects.
insertinsert
updateupdateservice_principal_risk_detection_id
deletedeleteservice_principal_risk_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
service_principal_risk_detection_idstringThe unique identifier of servicePrincipalRiskDetection
If-MatchstringETag

SELECT examples

Read the properties and relationships of a servicePrincipalRiskDetection object.

SELECT
id,
activity,
activityDateTime,
additionalInfo,
appId,
correlationId,
detectedDateTime,
detectionTimingType,
ipAddress,
keyIds,
lastUpdatedDateTime,
location,
requestId,
riskDetail,
riskEventType,
riskLevel,
riskState,
servicePrincipalDisplayName,
servicePrincipalId,
source,
tokenIssuerType
FROM entra_id.identity_protection.service_principal_risk_detections
WHERE service_principal_risk_detection_id = '{{ service_principal_risk_detection_id }}' -- required
;

INSERT examples

No description available.

INSERT INTO entra_id.identity_protection.service_principal_risk_detections (
id,
activity,
activityDateTime,
additionalInfo,
appId,
correlationId,
detectedDateTime,
detectionTimingType,
ipAddress,
keyIds,
lastUpdatedDateTime,
location,
requestId,
riskDetail,
riskEventType,
riskLevel,
riskState,
servicePrincipalDisplayName,
servicePrincipalId,
source,
tokenIssuerType
)
SELECT
'{{ id }}',
'{{ activity }}',
'{{ activityDateTime }}',
'{{ additionalInfo }}',
'{{ appId }}',
'{{ correlationId }}',
'{{ detectedDateTime }}',
'{{ detectionTimingType }}',
'{{ ipAddress }}',
'{{ keyIds }}',
'{{ lastUpdatedDateTime }}',
'{{ location }}',
'{{ requestId }}',
'{{ riskDetail }}',
'{{ riskEventType }}',
'{{ riskLevel }}',
'{{ riskState }}',
'{{ servicePrincipalDisplayName }}',
'{{ servicePrincipalId }}',
'{{ source }}',
'{{ tokenIssuerType }}'
RETURNING
id,
activity,
activityDateTime,
additionalInfo,
appId,
correlationId,
detectedDateTime,
detectionTimingType,
ipAddress,
keyIds,
lastUpdatedDateTime,
location,
requestId,
riskDetail,
riskEventType,
riskLevel,
riskState,
servicePrincipalDisplayName,
servicePrincipalId,
source,
tokenIssuerType
;

UPDATE examples

No description available.

UPDATE entra_id.identity_protection.service_principal_risk_detections
SET
id = '{{ id }}',
activity = '{{ activity }}',
activityDateTime = '{{ activityDateTime }}',
additionalInfo = '{{ additionalInfo }}',
appId = '{{ appId }}',
correlationId = '{{ correlationId }}',
detectedDateTime = '{{ detectedDateTime }}',
detectionTimingType = '{{ detectionTimingType }}',
ipAddress = '{{ ipAddress }}',
keyIds = '{{ keyIds }}',
lastUpdatedDateTime = '{{ lastUpdatedDateTime }}',
location = '{{ location }}',
requestId = '{{ requestId }}',
riskDetail = '{{ riskDetail }}',
riskEventType = '{{ riskEventType }}',
riskLevel = '{{ riskLevel }}',
riskState = '{{ riskState }}',
servicePrincipalDisplayName = '{{ servicePrincipalDisplayName }}',
servicePrincipalId = '{{ servicePrincipalId }}',
source = '{{ source }}',
tokenIssuerType = '{{ tokenIssuerType }}'
WHERE
service_principal_risk_detection_id = '{{ service_principal_risk_detection_id }}' --required
RETURNING
id,
activity,
activityDateTime,
additionalInfo,
appId,
correlationId,
detectedDateTime,
detectionTimingType,
ipAddress,
keyIds,
lastUpdatedDateTime,
location,
requestId,
riskDetail,
riskEventType,
riskLevel,
riskState,
servicePrincipalDisplayName,
servicePrincipalId,
source,
tokenIssuerType;

DELETE examples

No description available.

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