Skip to content

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
Microsoft Entra ID and Azure connectionIn your Microsoft Entra tenant, the enterprise application AuditGraph Collector holds the read-only Microsoft Graph application permissions you consented to, and Azure RBAC grants Reader at the tenant root management group, optionally Log Analytics Reader. In AuditGraph, in your region, the collector is a managed identity with a federated credential and no secret anywhere. It reads Microsoft Graph with an app-only, read-only token and reads Azure Resource Manager read-only. Discovery stages facts and publishes one snapshot, which is what you see in the app.YOUR MICROSOFT ENTRA TENANTENTERPRISE APPLICATIONAuditGraph CollectorRead-only Microsoft Graph application permissionsthat you consented toAZURE RBACReaderAt the tenant root management groupOptional: Log Analytics ReaderAUDITGRAPH · YOUR REGIONCOLLECTORManaged identitySigns in with a federated credentialNo secret anywhereDISCOVERYStaged facts → one published snapshotWhat you see in the appApp-only,read-only tokenRead-onlyARM reads
Figure 1. How AuditGraph connects to Microsoft Entra ID and Azure. Every call is read-only.
  • 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.
  • 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

Every permission is read-only. This is the same list shown on the consent step in AuditGraph.

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.
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.
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

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.

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.

  1. Start a new tenant connection.

    Open Connections (from Manage connections, or search Connections in the command palette) and select Connect Azure tenant.

  2. 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.
  3. 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.

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.
  1. Disconnect the tenant in AuditGraph.

    Go to Administration › Cloud Connectors › your tenant › Disconnect. Collection stops and retention rules apply — see Disconnecting and data retention.

  2. Delete the collector app in Microsoft Entra.

    Go to Enterprise applications › AuditGraph Collector › Properties › Delete. This removes the consent.

  3. Remove the role assignments in Azure.

    Remove the AuditGraph Collector role assignments at the scopes where you added them.