Connect Microsoft Entra ID

Let ProofLayer read your Microsoft directory (users, administrators, sign-in policies) so it can prove multi-factor authentication and access controls.

20 minYou need: A Global Administrator of your Microsoft tenant, or an IT colleague who is one

Before you start

Microsoft Entra ID (formerly Azure Active Directory) is where your company keeps its people and sign-in rules. ProofLayer reads it to show that every user and administrator has multi-factor authentication, and that your sign-in policies are sound. ProofLayer only reads. It never changes your directory.

To let ProofLayer in, Microsoft needs an application: a named identity that is allowed to read specific things. You will create one (called an app registration), give it four read-only permissions, and give ProofLayer its client secret, which is like a password for that application.

WordWhat it means
Tenant ID (Directory ID)The ID of your Microsoft directory. A long code such as 11111111-2222-3333-4444-555555555555.
App registrationThe named identity you create in Entra for ProofLayer to sign in as.
Client ID (Application ID)The ID of that app registration.
Client secretThe app’s password. Microsoft shows it once, so you copy it straight away. ProofLayer stores it encrypted and never shows it again.
Admin consentA Global Administrator clicking “yes, this app may read these things”. Without it the permissions do nothing.

Choose a route

There are two ways to give ProofLayer access. Open the connection in ProofLayer (see step 1 below) and look at the Entra ID access card:

  • If you see a tab called “Grant ProofLayer access”, your ProofLayer has its own shared Microsoft application. Use Route A. It is quicker and no secret is created.
  • If you do not, or you prefer your own application, use Route B (“Use your own app registration”).

Route A: grant ProofLayer’s application access

  1. Create the connection

    In ProofLayer go to Connections → New connection. For Provider choose Microsoft Entra ID. Give it a Name such as “Corporate directory”, and enter your Directory (tenant) ID.

    Find the tenant ID in the Microsoft Entra admin center (entra.microsoft.com) under Overview. Leave Application (client) ID and Client secret empty, then press Create.

  2. Open the connection and pick the consent tab

    Click the new connection, find Entra ID access, and open the tab Grant ProofLayer access.

  3. Press Grant admin consent in Microsoft

    Microsoft opens in a new page. A Global Administrator signs in and reads the list of read-only permissions, then accepts.

    You land back in ProofLayer with the message Consent recorded by Microsoft.

Route B: use your own app registration

  1. Open the Entra admin center

    Go to entra.microsoft.com and sign in as an administrator. Open Identity → Applications → App registrations.

  2. Press New registration

    Name it “ProofLayer read-only”. Under supported account types choose Accounts in this organizational directory only. Leave Redirect URI empty. Press Register.

  3. Copy the two IDs

    On the app’s Overview page copy the Application (client) ID and the Directory (tenant) ID. Paste them somewhere safe for now.

  4. Give it read-only permissions

    Open API permissions → Add a permission → Microsoft Graph → Application permissions. Search for and tick these four, then press Add permissions:

    The four permissions
    Directory.Read.All
    Policy.Read.All
    UserAuthenticationMethod.Read.All
    AuditLog.Read.All

    Three optional extras (the first two need Entra ID P2): RoleManagementPolicy.Read.Directory lets ProofLayer check that activating the Global Administrator and Privileged Role Administrator roles needs approval, and AccessReview.Read.All lets it check that guests and privileged roles are covered by an access review. Without one, only the checks that use it report an error; everything else works. A third, SharePointTenantSettings.Read.All, lets it check SharePoint and OneDrive sharing (no sign-in links, guest re-sharing, legacy sign-in, domain limits). Skip any of them and only the checks that need it show an error.

  5. Grant admin consent

    Still on API permissions, press Grant admin consent for your organisation and confirm with Yes.

    The four rows should now show a green tick under Status. If they do not, the permissions are not active yet.

  6. Create a client secret

    Open Certificates & secrets → Client secrets → New client secret. Give it a description and choose how long it lasts, then press Add.

    Copy the Value column straight away (not the “Secret ID”). Microsoft hides it once you leave the page.

  7. Give ProofLayer the details

    In ProofLayer go to Connections → New connection, choose Microsoft Entra ID, name it, and fill in Directory (tenant) ID, Application (client) ID and Client secret. Press Create.

    Already created the connection without these? Open it, go to the Use your own app registration tab on the Entra ID access card, fill them in, and press Save app.

Check that it works

  1. Open the connection in ProofLayer

    Go to Connections, click the connection you just made, and find the card called Entra ID access.

  2. Press Test access

    ProofLayer makes one small read-only request and shows the answer.

    Success looks like a green Access verified message. A red Access test failed message says what went wrong; see the table at the end of this page.

What ProofLayer reads

  • Whether every enabled member user, and every holder of an administrator role, has registered a multi-factor method.
  • How many Global Administrators you have (it checks for between two and five).
  • Whether security defaults are on, or a Conditional Access policy requires MFA for administrators.
  • Whether legacy sign-in methods that cannot do MFA are blocked.
  • Whether only administrators can invite guest users, and whether ordinary users can create applications.

If something goes wrong

What you seeLikely causeWhat to do
Microsoft refuses a tokenA wrong tenant ID, client ID or secret. Often the Secret ID was copied instead of the Value.Check the three values. Create a new client secret and paste its Value.
Access works but some checks say “could not observe”Admin consent missing, or no Entra ID P1/P2 licence for the MFA report.Confirm all four permissions show a green tick. For MFA checks, a P1 or P2 licence is needed.
It worked, now it failsThe client secret expired.Create a new secret and press Update app.
The “Grant ProofLayer access” tab is missingYour ProofLayer has no shared Microsoft application.Use Route B.
“Test this connection before running a scan”No successful Test access yet.Press Test access on the connection page.