Skip to content

Commit 86800f3

Browse files
authored
Merge pull request #211618 from ShawnJackson/how-to-view-applied-conditional-access-policies
edit pass: how-to-view-applied-conditional-access-policies
2 parents 3278370 + 807f1ab commit 86800f3

File tree

1 file changed

+36
-53
lines changed

1 file changed

+36
-53
lines changed
Lines changed: 36 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22

3-
title: How to view applied conditional access policies in the Azure AD sign-in logs | Microsoft Docs
4-
description: Learn how to view applied conditional access policies in the Azure AD sign-in logs
3+
title: View applied Conditional Access policies in Azure AD sign-in logs
4+
description: Learn how to view Conditional Access policies in Azure AD sign-in logs so that you can assess the impact of those policies.
55
services: active-directory
66
documentationcenter: ''
77
author: MarkusVi
@@ -19,45 +19,35 @@ ms.reviewer: besiler
1919
ms.collection: M365-identity-device-management
2020
---
2121

22-
# How to: View applied conditional access policies in the Azure AD sign-in logs
22+
# View applied Conditional Access policies in Azure AD sign-in logs
2323

24-
With conditional access policies, you can control, how your users get access to the resources of your Azure tenant. As a tenant admin, you need to be able to determine what impact your conditional access policies have on sign-ins to your tenant, so that you can take action if necessary. The sign-in logs in Azure AD provide you with the information you need to assess the impact of your policies.
25-
26-
27-
This article explains how you can get access to the information about applied conditional access policies.
24+
With Conditional Access policies, you can control how your users get access to the resources of your Azure tenant. As a tenant admin, you need to be able to determine what impact your Conditional Access policies have on sign-ins to your tenant, so that you can take action if necessary.
2825

26+
The sign-in logs in Azure Active Directory (Azure AD) give you the information that you need to assess the impact of your policies. This article explains how to view applied Conditional Access policies in those logs.
2927

3028
## What you should know
3129

3230
As an Azure AD administrator, you can use the sign-in logs to:
3331

34-
- Troubleshoot sign in problems
35-
- Check on feature performance
36-
- Evaluate security of a tenant
37-
38-
Some scenarios require you to get an understanding for how your conditional access policies were applied to a sign-in event. Common examples include:
39-
40-
- **Helpdesk administrators** who need to look at applied conditional access policies to understand if a policy is the root cause of a ticket opened by a user.
41-
42-
- **Tenant administrators** who need to verify that conditional access policies have the intended impact on the users of a tenant.
32+
- Troubleshoot sign-in problems.
33+
- Check on feature performance.
34+
- Evaluate the security of a tenant.
4335

36+
Some scenarios require you to get an understanding of how your Conditional Access policies were applied to a sign-in event. Common examples include:
4437

45-
You can access the sign-in logs using the Azure portal, MS Graph, and PowerShell.
38+
- *Helpdesk administrators* who need to look at applied Conditional Access policies to understand if a policy is the root cause of a ticket that a user opened.
4639

40+
- *Tenant administrators* who need to verify that Conditional Access policies have the intended impact on the users of a tenant.
4741

42+
You can access the sign-in logs by using the Azure portal, Microsoft Graph, and PowerShell.
4843

4944
## Required administrator roles
5045

46+
To see applied Conditional Access policies in the sign-in logs, administrators must have permissions to view both the logs and the policies.
5147

52-
To see applied conditional access policies in the sign-in logs, administrators must have permissions to:
53-
54-
- View sign-in logs
55-
- View conditional access policies
56-
57-
The least privileged built-in role that grants both permissions is the **Security Reader**. As a best practice, your global administrator should add the **Security Reader** role to the related administrator accounts.
58-
48+
The least privileged built-in role that grants both permissions is *Security Reader*. As a best practice, your global administrator should add the Security Reader role to the related administrator accounts.
5949

60-
The following built in roles grant permissions to read conditional access policies:
50+
The following built-in roles grant permissions to read Conditional Access policies:
6151

6252
- Global Administrator
6353

@@ -70,7 +60,7 @@ The following built in roles grant permissions to read conditional access polici
7060
- Conditional Access Administrator
7161

7262

73-
The following built in roles grant permission to view sign-in logs:
63+
The following built-in roles grant permission to view sign-in logs:
7464

7565
- Global Administrator
7666

@@ -82,64 +72,57 @@ The following built in roles grant permission to view sign-in logs:
8272

8373
- Reports Reader
8474

85-
8675
## Permissions for client apps
8776

88-
If you use a client app to pull sign-in logs from Graph, your app needs permissions to receive the **appliedConditionalAccessPolicy** resource from Graph. As a best practice, assign **Policy.Read.ConditionalAccess** because it's the least privileged permission. Any of the following permissions is sufficient for a client app to access applied CA policies in sign-in logs through Graph:
77+
If you use a client app to pull sign-in logs from Microsoft Graph, your app needs permissions to receive the `appliedConditionalAccessPolicy` resource from Microsoft Graph. As a best practice, assign `Policy.Read.ConditionalAccess` because it's the least privileged permission.
8978

90-
- Policy.Read.ConditionalAccess
79+
Any of the following permissions is sufficient for a client app to access applied certificate authority (CA) policies in sign-in logs through Microsoft Graph:
9180

92-
- Policy.ReadWrite.ConditionalAccess
81+
- `Policy.Read.ConditionalAccess`
9382

94-
- Policy.Read.All
83+
- `Policy.ReadWrite.ConditionalAccess`
9584

96-
85+
- `Policy.Read.All`
9786

9887
## Permissions for PowerShell
9988

100-
Like any other client app, the Microsoft Graph PowerShell module needs client permissions to access applied conditional access policies in the sign-in logs. To successfully pull applied conditional access in the sign-in logs, you must consent to the necessary permissions with your administrator account for MS Graph PowerShell. As a best practice, consent to:
89+
Like any other client app, the Microsoft Graph PowerShell module needs client permissions to access applied Conditional Access policies in the sign-in logs. To successfully pull applied Conditional Access policies in the sign-in logs, you must consent to the necessary permissions with your administrator account for Microsoft Graph PowerShell. As a best practice, consent to:
10190

102-
- Policy.Read.ConditionalAccess
103-
- AuditLog.Read.All
104-
- Directory.Read.All
91+
- `Policy.Read.ConditionalAccess`
92+
- `AuditLog.Read.All`
93+
- `Directory.Read.All`
10594

10695
These permissions are the least privileged permissions with the necessary access.
10796

10897
To consent to the necessary permissions, use:
10998

110-
` Connect-MgGraph -Scopes Policy.Read.ConditionalAccess, AuditLog.Read.All, Directory.Read.All `
99+
`Connect-MgGraph -Scopes Policy.Read.ConditionalAccess, AuditLog.Read.All, Directory.Read.All`
111100

112101
To view the sign-in logs, use:
113102

114-
`Get-MgAuditLogSignIn `
115-
116-
The output of this cmdlet contains a **AppliedConditionalAccessPolicies** property that shows all the conditional access policies applied to the sign-in.
103+
`Get-MgAuditLogSignIn`
117104

118105
For more information about this cmdlet, see [Get-MgAuditLogSignIn](https://learn.microsoft.com/powershell/module/microsoft.graph.reports/get-mgauditlogsignin?view=graph-powershell-1.0).
119106

120-
The AzureAD Graph PowerShell module doesn't support viewing applied conditional access policies; only the Microsoft Graph PowerShell module returns applied conditional access policies.
107+
The Azure AD Graph PowerShell module doesn't support viewing applied Conditional Access policies. Only the Microsoft Graph PowerShell module returns applied Conditional Access policies.
121108

122109
## Confirming access
123110

124-
In the **Conditional Access** tab, you see a list of conditional access policies applied to that sign-in event.
125-
111+
On the **Conditional Access** tab, you see a list of Conditional Access policies applied to that sign-in event.
126112

127-
To confirm that you have admin access to view applied conditional access policies in the sign-ins logs, do:
113+
To confirm that you have admin access to view applied Conditional Access policies in the sign-in logs:
128114

129-
1. Navigate to the Azure portal.
115+
1. Go to the Azure portal.
130116

131-
2. In the top-right corner, select your directory, and then select **Azure Active Directory**in the left navigation pane.
117+
2. In the upper-right corner, select your directory, and then select **Azure Active Directory**on the left pane.
132118

133119
3. In the **Monitoring** section, select **Sign-in logs**.
134120

135-
4. Click an item in the sign-in row table to bring up the Activity Details: Sign-ins context pane.
136-
137-
5. Click on the Conditional Access tab in the context pane. If your screen is small, you may need to click the ellipsis [] to see all context pane tabs.
138-
139-
121+
4. Select an item in the sign-in table to open the **Activity Details: Sign-ins context** pane.
140122

123+
5. Select the **Conditional Access** tab on the context pane. If your screen is small, you might need to select the ellipsis (**...**) to see all tabs on the context pane.
141124

142125
## Next steps
143126

144-
* [Sign-ins error codes reference](./concept-sign-ins.md)
145-
* [Sign-ins report overview](concept-sign-ins.md)
127+
* [Sign-in error code reference](./concept-sign-ins.md)
128+
* [Sign-in report overview](concept-sign-ins.md)

0 commit comments

Comments
 (0)