Microsoft Entra ID and Azure
Connect Microsoft Entra ID to give AuditGraph read-only access to your directory: people, groups, applications, service principals, managed identities, AI agent identities, directory roles and Privileged Identity Management. Add the Azure Reader role so AuditGraph can also read your management groups, subscriptions, resources and Azure role assignments, and show what every identity can actually reach.
- Type
- Source (read-only collection)
- Time
- About 10 minutes. The first discovery then runs automatically.
- Who
- A Global Administrator or Privileged Role Administrator of the tenant (role active, not just eligible in PIM)
- Access granted
- Admin consent to the multi-tenant AuditGraph Collector app. AuditGraph signs in with a federated credential. No secret or certificate is created in your tenant or stored by AuditGraph.
- Writes to your tenant
- Never. The only change ever made is the read-only Reader role assignment described in step 4, and only if you ask for it.
- Where in AuditGraph
- During sign-up, or later under Administration › Cloud Connectors
How it works
Section titled “How it works”- Graph permissions are granted by admin consent and cover the directory (Entra ID).
- Azure RBAC roles are separate. Admin consent does not include Azure resources. Without Reader, the directory is collected but subscriptions and resources are not.
- Every collection is published as one consistent snapshot. Nothing appears in the app until a discovery has finished and been published. A capability that could not be collected shows Needs permission, Not available or Not collected, never an empty list or a 0. See Coverage and freshness.
Prerequisites
Section titled “Prerequisites”-
A Microsoft Entra work or school tenant. Personal Microsoft accounts are refused.
-
An account that holds Global Administrator or Privileged Role Administrator, active at the time you sign in. If the role is eligible through PIM, activate it first.
-
For the one-click Azure step: Owner or User Access Administrator at the tenant root management group. A Global Administrator can get this temporarily by turning on Access management for Azure resources (Microsoft Entra ID › Properties). Turn it off again afterwards. See Microsoft Learn: Elevate access to manage all Azure subscriptions and management groups.
-
Optional licensing. Microsoft provides some data only with certain licenses. When your tenant does not have them, AuditGraph shows the data as Not available, with the reason:
Data Needs Sign-in activity, MFA registration Microsoft Entra ID P1 or P2 ID Protection risk detections and risky users Microsoft Entra ID P2 Risky service principals Microsoft Entra Workload ID Premium
Permissions AuditGraph asks for
Section titled “Permissions AuditGraph asks for”Every permission is read-only. This is the same list shown on the consent step in AuditGraph.
Microsoft Graph application permissions (granted by admin consent)
Section titled “Microsoft Graph application permissions (granted by admin consent)”| Permission | Why AuditGraph needs it |
|---|---|
Directory.Read.All |
Read users, groups, applications, service principals and directory roles, and which applications users or administrators consented to (delegated permission grants), to show what apps may do on their behalf. |
Application.Read.All |
Read app registrations, enterprise applications and their granted permissions. |
AuditLog.Read.All |
Read sign-in activity, to tell access that is used from access that is not. Read authentication-method registration (whether someone can use MFA and which method types are registered — never phone numbers). For detection, read the directory audit log and the sign-in log. Sign-ins are kept only for privileged and at-risk identities, for a bounded period, and a person’s IP address is not stored. |
RoleManagement.Read.All |
Read Microsoft Entra role definitions, assignments and PIM eligibility. |
Policy.Read.All |
Read Conditional Access policies, security defaults, cross-tenant access settings, the authorization policy and the authentication methods policy — to show who must use MFA, whether legacy sign-in is blocked and which tenants yours trusts. AuditGraph never creates, changes or deletes a policy. |
Domain.Read.All |
Read the federation configuration of federated domains (issuer, protocol, sign-in host — never the signing certificate), to show which identity provider authenticates their sign-ins. |
AgentIdentity.Read.All |
Read Microsoft Entra Agent ID agent identities and their owners, to inventory every AI agent and show what each can reach. |
IdentityRiskEvent.Read.All |
Read ID Protection risk detections, to alert when an identity that can reach your most privileged roles shows signs of compromise. AuditGraph never dismisses or confirms a risk. |
IdentityRiskyUser.Read.All |
Read which users ID Protection marks as risky. |
IdentityRiskyServicePrincipal.Read.All |
Read which workload identities ID Protection marks as risky. |
Azure RBAC roles (assigned separately)
Section titled “Azure RBAC roles (assigned separately)”| Role | Required | Why |
|---|---|---|
| Reader | Yes, for Azure resources | Read the management-group hierarchy, subscriptions, resources, role definitions and role assignments. |
| Log Analytics Reader | Optional | Read Key Vault and Storage diagnostic logs in your Log Analytics workspaces, as evidence of which data-plane grants are actually used. |
Step-by-step setup
Section titled “Step-by-step setup”-
Start the connection from AuditGraph.
New organizations do this as part of sign-up. In an existing organization, go to Administration › Cloud Connectors › Add Cloud Connector › Microsoft Entra ID.
-
Sign in with your administrator account.
Microsoft asks you to approve sign-in to AuditGraph for your organization (openid, profile and email only). This is a one-time approval: no one else in your tenant sees a consent screen when they sign in later.
-
Grant admin consent to the AuditGraph Collector.
Microsoft shows the read-only permissions listed above. Select Accept. AuditGraph then verifies the consent by requesting a read-only token for your tenant.
Result: the page shows progress until the verification succeeds, usually within a minute.
-
Give read access to Azure subscriptions.
Choose one of the two ways:
On the Your organization is ready page, select Give AuditGraph read access to all subscriptions. Tick Log Analytics Reader as well if you want data-plane usage evidence.
Microsoft asks you to sign in once more, this time to a separate single-purpose app called AuditGraph Azure Setup. AuditGraph uses that sign-in exactly once to assign Reader (and the optional role) to the AuditGraph Collector at your tenant root management group. This covers every current and future subscription. The token is used for that one request and is never stored or logged.
When it succeeds, remove the setup app’s access, which is no longer needed: Microsoft Entra admin center › Enterprise applications › AuditGraph Azure Setup › Permissions › revoke (or delete the application). The Reader role assigned to the collector stays.
Assign the roles yourself at the tenant root management group (recommended), or only at the management groups or subscriptions you want AuditGraph to see. Only what you assign is collected.
The collector’s application (client) ID is shown on the page as
{client_id}.Azure CLI
Terminal window # Tenant root management group: its ID is your tenant IDaz role assignment create --assignee <client_id> --role "Reader" \--scope "/providers/Microsoft.Management/managementGroups/<tenant_id>"# Optionalaz role assignment create --assignee <client_id> --role "Log Analytics Reader" \--scope "/providers/Microsoft.Management/managementGroups/<tenant_id>"Azure PowerShell
Terminal window New-AzRoleAssignment -ApplicationId <client_id> -RoleDefinitionName "Reader" `-Scope "/providers/Microsoft.Management/managementGroups/<tenant_id>"To limit scope, replace the scope with
/providers/Microsoft.Management/managementGroups/<management_group_id>or/subscriptions/<subscription_id>.Or in the portal: Management groups › Tenant Root Group › Access control (IAM) › Add role assignment › Reader › Members: AuditGraph Collector.
-
Let the first discovery run.
It starts automatically.
Result: Administration › Cloud Connectors shows First scan pending, then the discovery’s progress and, when it is published, the Last successful snapshot time.
Test the connection
Section titled “Test the connection”Use these checks to confirm that each part works. None of them change anything in your tenant.
| Check | Where | Expected result |
|---|---|---|
| Consent recorded | Administration › Cloud Connectors › your tenant › Admin consent | Shows the consented read-only permissions. |
| Collector visible in your tenant | Microsoft Entra admin center › Enterprise applications › AuditGraph Collector › Permissions | The Graph permissions above, Admin consent: Granted, type Application. |
| Reader assigned | Azure portal › Management groups › Tenant Root Group › Access control (IAM) › Role assignments | AuditGraph Collector — Reader (and Log Analytics Reader if chosen). Or run az role assignment list --assignee <client_id> --all -o table. |
| Discovery completes | Administration › Cloud Connectors | Last successful snapshot has a time; Subscriptions (discovered · monitored) shows numbers. Until the first discovery is published, values read not measured — never 0. |
| Data is complete | Any workspace › a capability marked Needs permission or Not available | Each such marker names the missing permission or license. If none appear, every capability was collected. |
| Spot-check one identity | Search for a person you know holds an Entra role | Their role, how it is held (direct, group, PIM eligible) and what it reaches match the Entra admin center. |
Discovery runs on a schedule, set per connector under Connector Settings: the scheduler starts a discovery when the last run is older than the interval. To start one yourself, select Run Discovery.
Add another directory later
Section titled “Add another directory later”An organization can connect more than one Microsoft Entra tenant. Each one must prove that your organization controls it before AuditGraph schedules or scans it. Until then, the connection reads Control not proven — not scheduled or scanned.
-
Start a new tenant connection.
Open Connections (from Manage connections, or search Connections in the command palette) and select Connect Azure tenant.
-
Prove control of the tenant.
Use one of the two options shown under Prove control:
- Admin consent through a bound link. Select Create consent link and send it to a Global Administrator of that tenant. The link is bound to your organization and expires. Once they approve it, the page says Control of the directory is proven for your organization.
- A verified domain of the tenant. Choose a domain your organization has already verified by DNS (see below) that is also a verified domain of that Entra tenant, then select Prove with this domain.
-
Give the collector Azure read access in that tenant.
Follow step 4. The Do it yourself commands work for any tenant.
Verifying a domain by DNS. Go to Administration › Authentication, claim the domain, and publish
the TXT record AuditGraph shows. The record name starts with _auditgraph-challenge and the value with
auditgraph-domain-verification=. Then select Verify. DNS changes can take a while to appear.
Consent already granted in Entra. If the tenant’s administrator already granted consent in Microsoft Entra, use the recheck on the connection. AuditGraph checks the existing consent again, with no new Microsoft prompt, and control is proven within minutes if the consent is in place.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause | Fix |
|---|---|---|
| Microsoft shows Need admin approval | The account is not a Global Administrator or Privileged Role Administrator, or the role is eligible but not active. | Activate the role in PIM, or ask an administrator to complete sign-up. |
| Your account can’t assign roles at the tenant root yet | The signer lacks Owner / User Access Administrator at the tenant root management group. | Turn on Access management for Azure resources (Microsoft Entra ID › Properties), select Try again, then turn it off afterwards. Or use Do it yourself. |
| Management group not found | The tenant has never used management groups. | Open Management groups in the Azure portal once to create the hierarchy, or assign Reader per subscription. |
| Subscriptions missing | Reader was assigned at a narrower scope, or not yet. | Check the role assignments above. Only assigned scopes are collected. |
| A capability shows Needs permission | Your tenant consented before AuditGraph added that read-only permission. | Administration › Cloud Connectors › Add Cloud Connector › Microsoft Entra ID › Create consent link. A Global Administrator opens the link and approves the updated list once. Already approved it in Entra? Use the recheck on the same page — AuditGraph verifies again with no new Microsoft prompt. |
| Sign-in activity or MFA shows Not available | The tenant has no Entra ID P1/P2 license. | Expected. The reason is stated on the page. |
Remove the integration
Section titled “Remove the integration”-
Disconnect the tenant in AuditGraph.
Go to Administration › Cloud Connectors › your tenant › Disconnect. Collection stops and retention rules apply — see Disconnecting and data retention.
-
Delete the collector app in Microsoft Entra.
Go to Enterprise applications › AuditGraph Collector › Properties › Delete. This removes the consent.
-
Remove the role assignments in Azure.
Remove the AuditGraph Collector role assignments at the scopes where you added them.