sign_ins
Creates, updates, deletes, gets or lists a sign_ins resource.
Overview
| Name | sign_ins |
| Type | Resource |
| Id | entra_id.audit_logs.sign_ins |
Fields
The following fields are returned by SELECT queries:
- get
- list
Retrieved navigation property
| Name | Datatype | Description |
|---|---|---|
id | string | The unique identifier for an entity. Read-only. |
appDisplayName | string | App name displayed in the Microsoft Entra admin center. Supports $filter (eq, startsWith). |
appId | string | Unique GUID that represents the app ID in the Microsoft Entra ID. Supports $filter (eq). |
appliedConditionalAccessPolicies | array | Provides a list of conditional access policies that the corresponding sign-in activity triggers. Apps need more Conditional Access-related privileges to read the details of this property. For more information, see Permissions for viewing applied conditional access (CA) policies in sign-ins. |
clientAppUsed | string | Identifies the client used for the sign-in activity. Modern authentication clients include Browser, modern clients. Legacy authentication clients include Exchange ActiveSync, IMAP, MAPI, SMTP, POP, and other clients. Supports $filter (eq). |
conditionalAccessStatus | | Reports status of an activated conditional access policy. The possible values are: success, failure, notApplied, and unknownFutureValue. Supports $filter (eq). |
correlationId | string | The request ID sent from the client when the sign-in is initiated. Used to troubleshoot sign-in activity. Supports $filter (eq). |
createdDateTime | string (date-time) | Date and time (UTC) the sign-in was initiated. Example: midnight on Jan 1, 2014 is reported as 2014-01-01T00:00:00Z. Supports $orderby, $filter (eq, le, and ge). (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])$) |
deviceDetail | | Device information from where the sign-in occurred; includes device ID, operating system, and browser. Supports $filter (eq, startsWith) on browser and operatingSytem properties. |
ipAddress | string | IP address of the client used to sign in. Supports $filter (eq, startsWith). |
isInteractive | boolean | Indicates whether a sign-in is interactive. |
location | | Provides the city, state, and country code where the sign-in originated. Supports $filter (eq, startsWith) on city, state, and countryOrRegion properties. |
resourceDisplayName | string | Name of the resource the user signed into. Supports $filter (eq). |
resourceId | string | ID of the resource that the user signed into. Supports $filter (eq). |
riskDetail | | The reason behind a specific state of a risky user, sign-in, or a risk event. The value none means that Microsoft Entra risk detection did not flag the user or the sign-in as a risky event so far. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. |
riskEventTypes | array | |
riskEventTypes_v2 | array | The list of risk event types associated with the sign-in. Possible values: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic, or unknownFutureValue. Supports $filter (eq, startsWith). |
riskLevelAggregated | | Aggregated risk level. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. |
riskLevelDuringSignIn | | Risk level during sign-in. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. |
riskState | | Reports status of the risky user, sign-in, or a risk event. The possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue. Supports $filter (eq). |
status | | Sign-in status. Includes the error code and description of the error (if a sign-in failure occurs). Supports $filter (eq) on errorCode property. |
userDisplayName | string | Display name of the user that initiated the sign-in. Supports $filter (eq, startsWith). |
userId | string | ID of the user that initiated the sign-in. Supports $filter (eq). |
userPrincipalName | string | User principal name of the user that initiated the sign-in. This value is always in lowercase. For guest users whose values in the user object typically contain #EXT# before the domain part, this property stores the value in both lowercase and the 'true' format. For example, while the user object stores AdeleVance_fabrikam.com#EXT#@contoso.com, the sign-in logs store adelevance@fabrikam.com. Supports $filter (eq, startsWith). |
Retrieved collection
| Name | Datatype | Description |
|---|---|---|
id | string | The unique identifier for an entity. Read-only. |
appDisplayName | string | App name displayed in the Microsoft Entra admin center. Supports $filter (eq, startsWith). |
appId | string | Unique GUID that represents the app ID in the Microsoft Entra ID. Supports $filter (eq). |
appliedConditionalAccessPolicies | array | Provides a list of conditional access policies that the corresponding sign-in activity triggers. Apps need more Conditional Access-related privileges to read the details of this property. For more information, see Permissions for viewing applied conditional access (CA) policies in sign-ins. |
clientAppUsed | string | Identifies the client used for the sign-in activity. Modern authentication clients include Browser, modern clients. Legacy authentication clients include Exchange ActiveSync, IMAP, MAPI, SMTP, POP, and other clients. Supports $filter (eq). |
conditionalAccessStatus | | Reports status of an activated conditional access policy. The possible values are: success, failure, notApplied, and unknownFutureValue. Supports $filter (eq). |
correlationId | string | The request ID sent from the client when the sign-in is initiated. Used to troubleshoot sign-in activity. Supports $filter (eq). |
createdDateTime | string (date-time) | Date and time (UTC) the sign-in was initiated. Example: midnight on Jan 1, 2014 is reported as 2014-01-01T00:00:00Z. Supports $orderby, $filter (eq, le, and ge). (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])$) |
deviceDetail | | Device information from where the sign-in occurred; includes device ID, operating system, and browser. Supports $filter (eq, startsWith) on browser and operatingSytem properties. |
ipAddress | string | IP address of the client used to sign in. Supports $filter (eq, startsWith). |
isInteractive | boolean | Indicates whether a sign-in is interactive. |
location | | Provides the city, state, and country code where the sign-in originated. Supports $filter (eq, startsWith) on city, state, and countryOrRegion properties. |
resourceDisplayName | string | Name of the resource the user signed into. Supports $filter (eq). |
resourceId | string | ID of the resource that the user signed into. Supports $filter (eq). |
riskDetail | | The reason behind a specific state of a risky user, sign-in, or a risk event. The value none means that Microsoft Entra risk detection did not flag the user or the sign-in as a risky event so far. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. |
riskEventTypes | array | |
riskEventTypes_v2 | array | The list of risk event types associated with the sign-in. Possible values: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic, or unknownFutureValue. Supports $filter (eq, startsWith). |
riskLevelAggregated | | Aggregated risk level. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. |
riskLevelDuringSignIn | | Risk level during sign-in. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. |
riskState | | Reports status of the risky user, sign-in, or a risk event. The possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue. Supports $filter (eq). |
status | | Sign-in status. Includes the error code and description of the error (if a sign-in failure occurs). Supports $filter (eq) on errorCode property. |
userDisplayName | string | Display name of the user that initiated the sign-in. Supports $filter (eq, startsWith). |
userId | string | ID of the user that initiated the sign-in. Supports $filter (eq). |
userPrincipalName | string | User principal name of the user that initiated the sign-in. This value is always in lowercase. For guest users whose values in the user object typically contain #EXT# before the domain part, this property stores the value in both lowercase and the 'true' format. For example, while the user object stores AdeleVance_fabrikam.com#EXT#@contoso.com, the sign-in logs store adelevance@fabrikam.com. Supports $filter (eq, startsWith). |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | sign_in_id | Retrieve a specific Microsoft Entra user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. | |
list | select | Retrieve the Microsoft Entra user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Microsoft Entra ID default retention period are available. | ||
update | update | sign_in_id | ||
delete | delete | sign_in_id | If-Match | |
confirm_compromised | exec | Mark an event in the Microsoft Entra sign-in logs as risky. Events marked as risky by an admin are immediately flagged as high risk in Microsoft Entra ID Protection, overriding previous risk states. Admins can confirm that events flagged as risky by Microsoft Entra ID Protection are in fact risky. For details about investigating Identity Protection risks, see How to investigate risk. | ||
confirm_safe | exec | Mark an event in Microsoft Entra sign-in logs as safe. Admins can either mark the events flagged as risky by Microsoft Entra ID Protection as safe, or they can mark unflagged events as safe. For details about investigating Identity Protection risks, see How to investigate risk. | ||
dismiss | exec | Mark an event in Microsoft Entra sign-in logs as dismissed. For details about investigating Identity Protection risks, see How to investigate risk. |
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.
| Name | Datatype | Description |
|---|---|---|
sign_in_id | string | The unique identifier of signIn |
If-Match | string | ETag |
SELECT examples
- get
- list
Retrieve a specific Microsoft Entra user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs.
SELECT
id,
appDisplayName,
appId,
appliedConditionalAccessPolicies,
clientAppUsed,
conditionalAccessStatus,
correlationId,
createdDateTime,
deviceDetail,
ipAddress,
isInteractive,
location,
resourceDisplayName,
resourceId,
riskDetail,
riskEventTypes,
riskEventTypes_v2,
riskLevelAggregated,
riskLevelDuringSignIn,
riskState,
status,
userDisplayName,
userId,
userPrincipalName
FROM entra_id.audit_logs.sign_ins
WHERE sign_in_id = '{{ sign_in_id }}' -- required
;
Retrieve the Microsoft Entra user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Microsoft Entra ID default retention period are available.
SELECT
id,
appDisplayName,
appId,
appliedConditionalAccessPolicies,
clientAppUsed,
conditionalAccessStatus,
correlationId,
createdDateTime,
deviceDetail,
ipAddress,
isInteractive,
location,
resourceDisplayName,
resourceId,
riskDetail,
riskEventTypes,
riskEventTypes_v2,
riskLevelAggregated,
riskLevelDuringSignIn,
riskState,
status,
userDisplayName,
userId,
userPrincipalName
FROM entra_id.audit_logs.sign_ins
;
UPDATE examples
- update
No description available.
UPDATE entra_id.audit_logs.sign_ins
SET
id = '{{ id }}',
appDisplayName = '{{ appDisplayName }}',
appId = '{{ appId }}',
appliedConditionalAccessPolicies = '{{ appliedConditionalAccessPolicies }}',
clientAppUsed = '{{ clientAppUsed }}',
conditionalAccessStatus = '{{ conditionalAccessStatus }}',
correlationId = '{{ correlationId }}',
createdDateTime = '{{ createdDateTime }}',
deviceDetail = '{{ deviceDetail }}',
ipAddress = '{{ ipAddress }}',
isInteractive = {{ isInteractive }},
location = '{{ location }}',
resourceDisplayName = '{{ resourceDisplayName }}',
resourceId = '{{ resourceId }}',
riskDetail = '{{ riskDetail }}',
riskEventTypes = '{{ riskEventTypes }}',
riskEventTypes_v2 = '{{ riskEventTypes_v2 }}',
riskLevelAggregated = '{{ riskLevelAggregated }}',
riskLevelDuringSignIn = '{{ riskLevelDuringSignIn }}',
riskState = '{{ riskState }}',
status = '{{ status }}',
userDisplayName = '{{ userDisplayName }}',
userId = '{{ userId }}',
userPrincipalName = '{{ userPrincipalName }}'
WHERE
sign_in_id = '{{ sign_in_id }}' --required
RETURNING
id,
appDisplayName,
appId,
appliedConditionalAccessPolicies,
clientAppUsed,
conditionalAccessStatus,
correlationId,
createdDateTime,
deviceDetail,
ipAddress,
isInteractive,
location,
resourceDisplayName,
resourceId,
riskDetail,
riskEventTypes,
riskEventTypes_v2,
riskLevelAggregated,
riskLevelDuringSignIn,
riskState,
status,
userDisplayName,
userId,
userPrincipalName;
DELETE examples
- delete
No description available.
DELETE FROM entra_id.audit_logs.sign_ins
WHERE sign_in_id = '{{ sign_in_id }}' --required
AND If-Match = '{{ If-Match }}'
;
Lifecycle Methods
- confirm_compromised
- confirm_safe
- dismiss
Mark an event in the Microsoft Entra sign-in logs as risky. Events marked as risky by an admin are immediately flagged as high risk in Microsoft Entra ID Protection, overriding previous risk states. Admins can confirm that events flagged as risky by Microsoft Entra ID Protection are in fact risky. For details about investigating Identity Protection risks, see How to investigate risk.
EXEC entra_id.audit_logs.sign_ins.confirm_compromised
@@json=
'{
"requestIds": "{{ requestIds }}"
}'
;
Mark an event in Microsoft Entra sign-in logs as safe. Admins can either mark the events flagged as risky by Microsoft Entra ID Protection as safe, or they can mark unflagged events as safe. For details about investigating Identity Protection risks, see How to investigate risk.
EXEC entra_id.audit_logs.sign_ins.confirm_safe
@@json=
'{
"requestIds": "{{ requestIds }}"
}'
;
Mark an event in Microsoft Entra sign-in logs as dismissed. For details about investigating Identity Protection risks, see How to investigate risk.
EXEC entra_id.audit_logs.sign_ins.dismiss
@@json=
'{
"requestIds": "{{ requestIds }}"
}'
;