Skip to content

Microsoft 365

Varman reads your Microsoft Entra ID tenant through Microsoft Graph and runs four checks.

Check Passes when Evidence task
MFA Enforced Security Defaults are on, or at least one enabled Conditional Access policy requires MFA 2FA
Admin Accounts Limited The tenant has between 1 and 5 Global Administrators Role-based Access Controls
Inactive Users Disabled Every enabled member account signed in within the last 90 days (accounts that never signed in are measured from their creation date) Access Review Log
Audit Logging Enabled Directory audit logs (/auditLogs/directoryAudits) can be read Internal Security Audit

Guest accounts and disabled accounts are skipped by the inactive users check.

  • A Microsoft Entra account that can create app registrations.
  • A Global Administrator or Privileged Role Administrator to grant admin consent for the Graph permissions.
  • For full results, a Microsoft Entra ID P1 or P2 license. Conditional Access policies, sign-in activity and directory audit logs need it. Without it, a tenant that relies on Security Defaults still passes the MFA check.

Add these Microsoft Graph application permissions (not delegated) and grant admin consent:

  • User.Read.All
  • Directory.Read.All
  • Policy.Read.All
  • AuditLog.Read.All
  • Reports.Read.All

Varman gets a token with the client credentials flow and the scope https://graph.microsoft.com/.default, then only reads. No redirect URL or user consent screen is involved. Microsoft lists each permission in the Graph permissions reference.

  1. In the Microsoft Entra admin center, open App registrations > New registration. Single tenant is fine. Click Register. See Register an application.

  2. Copy the Directory (tenant) ID and Application (client) ID.

  3. Open API permissions > Add a permission > Microsoft Graph > Application permissions and add the five permissions above. Then click Grant admin consent. See Grant tenant-wide admin consent.

  4. Open Certificates & secrets > New client secret and copy the Value. See Add credentials.

  5. In Varman, open Integrations, find Microsoft 365 and click Set up.

  6. Fill Directory (tenant) ID, Application (client) ID and Client secret, then click Connect account.

Only check results are stored. The checks read the Security Defaults policy, Conditional Access policies, activated directory roles and Global Administrator members, users with their sign-in activity, and the most recent directory audit entry. Checks run on the daily schedule described in the overview, or when you click Run now.

Open Integrations > Microsoft 365, click Settings, then Disconnect. Then delete the client secret or the whole app registration in the Entra admin center. See Delete an enterprise application. See Disconnecting for what Varman keeps.

  • Microsoft Graph authentication failed: ... The tenant ID, client ID or secret is wrong, or the secret expired. Create a new secret, then disconnect and connect again.
  • Unable to confirm MFA enforcement Security Defaults look disabled and Conditional Access policies could not be read. Grant Policy.Read.All with admin consent, and check the tenant has Entra ID P1 or P2. Or turn on Security Defaults (Security defaults).
  • MFA not enforced Turn on Security Defaults, or create an enabled Conditional Access policy that requires MFA for all users.
  • Unable to read directory roles or No Global Administrators found Grant Directory.Read.All with admin consent.
  • Excessive number of Global Administrators The tenant has more than five. Move people to least-privilege roles or use Privileged Identity Management for just-in-time access.
  • Inactive user review unavailable Sign-in activity could not be read, which usually means the tenant has no Entra ID P1 or P2 license. The check records this as a pass with that note.
  • Directory audit logging unavailable Grant AuditLog.Read.All with admin consent and make sure the tenant has Entra ID P1 or P2.