In short
Microsoft Entra ID Conditional Access configuration export: the file Microsoft Entra ID Conditional Access writes of its own settings, which a configuration review reads setting by setting without connecting to Microsoft Entra ID Conditional Access.
How to export the Microsoft Entra ID Conditional Access configuration, what the review checks in the file, and what it does not read.
| The file | JSON, one file entra-ca.json (UTF-8): a list of your Conditional Access policies with Graph’s own field names |
|---|---|
| Checks run on it | 30 |
| Highest grade its findings reach | OBSERVED |
| Feeds attack paths | Yes |
| Not read from this export | 2 areas, listed below |
Sources: Microsoft Entra ID Conditional Access documentation (1); Microsoft Entra ID Conditional Access documentation (2); Microsoft Entra ID Conditional Access documentation (3); the vendor table.
How to export it
- Who can pull it
- An account with the Security Reader role (the least privileged role Microsoft lists for reading Conditional Access; it reads the standard properties) or the Global Reader role (reads all properties), signed in with the Microsoft Graph permission Policy.Read.All. The role is what lets the account list the policies. Microsoft marks Policy.Read.All as needing administrator consent, so an administrator has to consent to it before your sign-in works (see the errors below).
- Time
- About 10 minutes when the Graph module still has to be installed (that takes most of it); about 2 minutes after that, or with Graph Explorer.
- The file
- JSON, one file entra-ca.json (UTF-8): a list of your Conditional Access policies with Graph’s own field names
In the Microsoft Entra ID Conditional Access console
Or in the browser, with nothing to install: open Microsoft Graph Explorer (developer.microsoft.com/graph/graph-explorer), sign in with the account that holds the reader role, set the request to GET https://graph.microsoft.com/v1.0/identity/conditionalAccess/policies and click Run query (if it reports missing permissions, open Modify permissions and consent to Policy.Read.All). Copy the whole Response preview into a new text file and save it as entra-ca.json (UTF-8). If the answer contains "@odata.nextLink", it holds just page one: use the PowerShell steps instead.
The vendor's page, checked 2026-11-11
Or from the command line
The vendor's page, checked 2026-11-11Install-Module Microsoft.Graph.Identity.SignIns -Scope CurrentUser -Repository PSGallery(once per computer, in PowerShell; it installs that module and Microsoft.Graph.Authentication, which Connect-MgGraph needs. For Windows PowerShell, Microsoft says the execution policy must be RemoteSigned or less restrictive: check it withGet-ExecutionPolicyand, if it is stricter, runSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserand then this line again. That setting stays saved for your Windows user until you remove it)
The vendor's page, checked 2026-11-11Connect-MgGraph -Scopes "Policy.Read.All"
The vendor's page, checked 2026-11-11ConvertTo-Json -InputObject @(Get-MgIdentityConditionalAccessPolicy -All | ForEach-Object { $_.ToJsonString() | ConvertFrom-Json }) -Depth 20 | Out-File -Encoding utf8 entra-ca.json
The vendor's page, checked 2026-11-11Disconnect-MgGraph(signs you out and clears the sign-in token that Microsoft Graph PowerShell cached for your user)
The script the steps run: Entra Conditional Access export (PowerShell).
What the file looks like
JSON, one file entra-ca.json (UTF-8): a list of your Conditional Access policies with Graph’s own field names. It varies with the number of Conditional Access policies in the tenant. The upload takes files up to 10 MB.
What it holds: Every Conditional Access policy: who and which apps are in scope, the conditions (risk, device, location) and the grant and session controls.
entra-conditional-access.ps1 runs both commands (Connect-MgGraph and the export) for this upload, then signs out. -All returns every page of policies, and -Depth 20 keeps the nested conditions that a shallower depth cuts off. ToJsonString() keeps Graph’s own names (displayName, grantControls); ConvertTo-Json alone writes DisplayName and GrantControls, which the upload refuses. Out-File -Encoding utf8 writes UTF-8: in Windows PowerShell 5.1, > writes UTF-16, which the upload refuses. -InputObject @( … ) keeps the file a list even when the tenant has one policy: piped into ConvertTo-Json, a single policy is written as one object, which the review reads as no policies. entra-ca.json is saved in the folder PowerShell shows before the > (usually C:\Users\<you> on Windows). To run the script instead of the export line: open PowerShell in the folder it downloaded to and run Unblock-File .\entra-conditional-access.ps1 and then .\entra-conditional-access.ps1 (Windows marks a downloaded script, and RemoteSigned does not run an unsigned one until it is unblocked).
Afterwards
Run Disconnect-MgGraph . To withdraw an organization consent: Microsoft Entra admin center → Entra ID → Enterprise apps → All applications → Microsoft Graph Command Line Tools → Permissions → Admin consent → ... → Revoke permission. To remove the saved execution policy: Set-ExecutionPolicy -ExecutionPolicy Undefined -Scope CurrentUser . In Graph Explorer, delete the History items. Delete entra-ca.json afterwards.
If the export goes wrong
| What you see | The fix |
|---|---|
| Signing in shows "Need admin approval" (or AADSTS65001) for Policy.Read.All. | Policy.Read.All needs administrator consent. Ask an administrator with at least the Privileged Role Administrator role to run Connect-MgGraph -Scopes "Policy.Read.All" once and tick "Consent on behalf of your organization" (Microsoft shows that box to that role and above); then sign in again with your own account. This grants the permission to the app Microsoft Graph Command Line Tools for the whole tenant until it is revoked. If you use Graph Explorer instead, that approval does not carry over (Graph Explorer is a separate app): the administrator signs in to Graph Explorer, opens Modify permissions, selects Consent next to Policy.Read.All and ticks Consent on behalf of your organization; or use the PowerShell steps. |
| Get-MgIdentityConditionalAccessPolicy fails with 403 (Forbidden). | The signed-in account has no role that may read Conditional Access. Ask an administrator with at least the Privileged Role Administrator role to assign it Security Reader: Microsoft Entra admin center → Identity → Roles & admins → Security Reader → Add assignments. Then run Disconnect-MgGraph , sign in again and run the export again. |
| The upload says the Entra export has no “conditions” block, or refuses the file as UTF-16. | The file was written another way (ConvertTo-Json alone, a shallow -Depth, or > in Windows PowerShell 5.1). Run the export line exactly as shown (or the .ps1 script) and upload the new entra-ca.json. |
What we read from it
- Checks run
- 30 + 10 guidance items, not counted
- Formats read
- Microsoft Graph JSON export
- Releases
- 2024.1 to current
Checks run is the number of checks that reached a result on this system's own export in our tests, as the vendor table shows it.
The areas checked
- Every Conditional Access policy: users, groups and apps in scope, conditions, grant and session controls
- Legacy-authentication blocks, MFA for admin roles, risk-based policies, sign-in frequency and persistent sessions
- Report-only and disabled policies, break-glass exclusions, and the named locations each policy includes or excludes (by ID)
The grade its findings reach
Observed Findings from this file are OBSERVED: read from the system's own export and cited to the setting.
Its findings feed attack paths: each one can be a step on a path an attacker could take to your crown jewels.
Attack paths, the one change and dollar figures are MODELED. How each grade is worked out is on the method page.
What we do not read from this export
- Directory role assignments: who holds Global Administrator or other roles
- PIM: eligible and active privileged role assignments
- Guest accounts and external collaboration settings (just the policies that target guests)
- App consent settings and the permissions granted to enterprise apps
- Sign-in logs: whether a policy actually applied
- Named location definitions (the IP ranges and countries behind each location, and which are trusted): not in this export
Limits of the reader
- If your export leaves a section out, the review does not flag it as partial.
- The checks of this system are not counted: a check counts once a test shows it firing on a file in the layout the vendor documents.
A finding never comes from what the file does not hold: live traffic, running hosts and logs are not in a configuration export.
A Microsoft Entra ID Conditional Access finding from the sample company
CloudOps group left out of the tenant MFA policy
Run the sample to see this finding with its fix and the paths it sits on.
Questions
Who can export the Microsoft Entra ID Conditional Access configuration?
An account with the Security Reader role (the least privileged role Microsoft lists for reading Conditional Access; it reads the standard properties) or the Global Reader role (reads all properties), signed in with the Microsoft Graph permission Policy.Read.All. The role is what lets the account list the policies. Microsoft marks Policy.Read.All as needing administrator consent, so an administrator has to consent to it before your sign-in works (see the errors below).
Does the export change anything?
The export is one GET request and changes no policy. The sign-in records a consent for Policy.Read.All on the enterprise app Microsoft Graph Command Line Tools (Graph Explorer in the browser route) and adds that app if absent. On your computer: two PowerShell modules installed, plus the execution policy if you set it.
Does the file hold passwords or keys?
No passwords, keys or tokens: the Conditional Access policy object in Microsoft Graph has no such property. The file does hold the object IDs of the users, groups and roles each policy includes or excludes, and application and named location IDs. Excluded user IDs can point to emergency access accounts, so treat the file as internal. With redaction on (the default), the passwords, keys and tokens the review recognises are replaced with a placeholder before anything is stored; the check before upload shows how many it found.