Microsoft 365
What it does in Varman
Section titled “What it does in Varman”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.
What you need
Section titled “What you need”- 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.
Permissions requested
Section titled “Permissions requested”Add these Microsoft Graph application permissions (not delegated) and grant admin consent:
User.Read.AllDirectory.Read.AllPolicy.Read.AllAuditLog.Read.AllReports.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.
Connect
Section titled “Connect”-
In the Microsoft Entra admin center, open App registrations > New registration. Single tenant is fine. Click Register. See Register an application.
-
Copy the Directory (tenant) ID and Application (client) ID.
-
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.
-
Open Certificates & secrets > New client secret and copy the Value. See Add credentials.
-
In Varman, open Integrations, find Microsoft 365 and click Set up.
-
Fill Directory (tenant) ID, Application (client) ID and Client secret, then click Connect account.
What gets synced and how often
Section titled “What gets synced and how often”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.
Disconnect
Section titled “Disconnect”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.
Troubleshooting
Section titled “Troubleshooting”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 enforcementSecurity Defaults look disabled and Conditional Access policies could not be read. GrantPolicy.Read.Allwith admin consent, and check the tenant has Entra ID P1 or P2. Or turn on Security Defaults (Security defaults).MFA not enforcedTurn on Security Defaults, or create an enabled Conditional Access policy that requires MFA for all users.Unable to read directory rolesorNo Global Administrators foundGrantDirectory.Read.Allwith admin consent.Excessive number of Global AdministratorsThe tenant has more than five. Move people to least-privilege roles or use Privileged Identity Management for just-in-time access.Inactive user review unavailableSign-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 unavailableGrantAuditLog.Read.Allwith admin consent and make sure the tenant has Entra ID P1 or P2.