Skip to content

Connect Microsoft Entra

This page walks you through the one-time setup, click by click. Afterwards Mango Inventory maintains your user list by itself: whoever is in the chosen Microsoft groups joins automatically; whoever leaves the groups is deactivated. You need no IT knowledge for this, only a Microsoft account with administrator rights. Plan for 10 to 15 minutes.

  • Premium plan in Mango Inventory. Directory sync is part of it. Details on the pricing page.
  • Owner role in Mango Inventory. Only owners see the “Single sign-on” card under Settings → Members.
  • A Microsoft account with the “Global Administrator” role in your organization. That is the account your organization uses to manage users and licences in Microsoft 365. It doesn’t have to be you. You can hand steps 2 to 5 to your IT.
  • Microsoft Entra is the directory service behind Microsoft 365. If your staff sign in to Outlook or Teams with an address of your organization, you have Entra, even if you have never heard the name.

Microsoft shows its pages in the language of your account. The labels on this page are the English ones. The screenshot in step 3 shows the German sign-in screen; yours appears in your account’s language.

  1. Open the setup in Mango Inventory. Sign in at app.mangoinventory.com and go to Settings → Members. On the “Single sign-on” card, click “Set up”. The setup opens beside the page, in three steps. Under “Choose your service”, click “Microsoft 365”.

  2. Open the consent link. In the “Connect” step, click “Open consent page”. If you are not a Microsoft administrator yourself, click “Copy” and send the link to your IT:

    https://login.microsoftonline.com/organizations/v2.0/adminconsent?client_id=0c3379d1-8021-43ae-8cdd-1b24a4fb9a38&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default&redirect_uri=https%3A%2F%2Fapp.mangoinventory.com%2Fsettings%2Fsso
  3. Sign in with the administrator account. Microsoft asks for the email address and password. Use the account with the “Global Administrator” role, not your personal one. An ordinary user account is turned away here.

    The Microsoft sign-in page in the browser, opened via the consent link

  4. Confirm the permissions. Microsoft shows four lines with what Mango Inventory gets. They are read permissions only: read group memberships, read users’ basic profiles (name and email address), read profile photos, and the sign-in itself. Confirm with “Accept” at the bottom right.

    The Microsoft consent page with the requested read permissions and the confirm button

    You then land back in the setup. If you opened the link yourself in this browser, it says “Admin consent granted.” and the tenant ID is already filled in: go on with step 6. If an error message appears instead, the account was not a global administrator. Then your IT takes over this step.

  5. Copy the tenant ID (only needed if the field is still empty, for example because your IT gave the consent). The tenant ID is your organization’s reference number at Microsoft, comparable to a customer number. Open entra.microsoft.com, sign in and stay on the “Overview” start page: under “Basic information” it shows “Tenant ID” with a string in the form 00000000-0000-0000-0000-000000000000. Click the copy icon next to it.

    The overview page in the Microsoft Entra admin center, cropped to the "Tenant ID" row and its copy icon

  6. Connect Microsoft Entra. Back in the setup: if the “Entra tenant ID” field is still empty, paste the copied value. Then click “Connect Microsoft Entra” at the bottom. Connecting doesn’t sync anyone yet. You pick the groups first.

  7. Pick the groups and the role. The setup is now on the “Groups and role” step. Under “Groups”, select the groups from your directory whose people should use Mango Inventory, e.g. “Operations” and “Technical”. Below it, check “Role for new members”: everyone joining from now on gets this role (default: Member).

  8. Look at the preview, then sync. Click “Preview changes” at the bottom. The preview lists who would join, be updated or be deactivated; nothing changes yet. If the list looks right, click “Sync now” at the bottom.

The synced people show up in the user list right away and sign in with “Continue with Microsoft”. From now on Mango reconciles the groups every night. What that means is under Directory sync.

  • The first sync reports an error (“403” or “Authorization_RequestDenied”). That is normal right after the consent: Microsoft needs a few minutes until the approval is known everywhere. Wait five minutes and click “Sync now” again.
  • The “Single sign-on” card shows “Needs reconnecting”. The consent was revoked in Entra or is no longer valid. Click “Open consent page” on the card, confirm again, and sync afterwards.
  • The group list stays empty. Then the tenant ID is wrong or the consent is missing. Check the ID on the overview page in the Entra admin center and go through steps 2 to 4 again.
  • Individual people stay on “Not signed in yet”. Usually the email address is missing in the directory (see the note below).
  • More than 500 people cannot be synced by one connection. In that case, pick narrower groups or get in touch with us.