---
title: "Connect Microsoft Entra | Mango Inventory Docs"
url: "https://mangoinventory.com/en/docs/verzeichnis-sync-entra"
description: "Step by step to directory sync with Microsoft Entra: grant consent, enter the tenant ID, pick groups. For administrators with no prior knowledge."
language: "en"
other_languages:
  de: "https://mangoinventory.com/docs/verzeichnis-sync-entra.md"
  fr: "https://mangoinventory.com/fr/docs/verzeichnis-sync-entra.md"
  es: "https://mangoinventory.com/es/docs/verzeichnis-sync-entra.md"
  it: "https://mangoinventory.com/it/docs/verzeichnis-sync-entra.md"
---

# 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**.

## Prerequisites

- **Premium plan in Mango Inventory.** Directory sync is part of it. Details on the [pricing page](https://mangoinventory.com/en#preise).
- **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.

> **Note**
>
> **What Mango Inventory may see**: only the names, email addresses and profile pictures of your users, plus who is in which group, and only **read-only**. Mango Inventory cannot create, change or delete anything in your directory, and has no access to emails, files, chats or calendars.

## Setting it up

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”**.

   *The “Single sign-on” setup beside the “Members” page: Microsoft 365 chosen, in the “Connect” step the “Open consent page” button and the “Entra tenant ID” field, at the bottom “Connect Microsoft Entra”*
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:

   ```text
   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](https://mangoinventory.com/_astro/zustimmung-anmeldung.DXFv_ERD_3a5h3.webp)
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](https://mangoinventory.com/_astro/zustimmung-berechtigungen.DnvMZbOM_Z2fqyQn.webp)

   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](https://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](https://mangoinventory.com/_astro/mandanten-id.BFWmKBXN_Z17wV3k.webp)
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.

   *The “Connect” step with the Entra tenant ID filled in, and the “Connect Microsoft Entra” button at the bottom*
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).

   *The “Groups and role” step with Microsoft Entra: the groups “Operations” and “Technical” selected, and below them “Role for new members”*
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.

## Done

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](https://mangoinventory.com/en/docs/verzeichnis-sync).

## If something doesn’t work

- **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](mailto:kontakt@mangoinventory.com).

> **Note**
>
> **Email address in the directory**: Entra accounts without the email attribute (“mail”) set are synced (with the sign-in name as their address) and appear in the user list, but cannot sign in with “Continue with Microsoft”. Microsoft doesn’t provide an email address for such accounts. Those people therefore stay on “Not signed in yet”; alternatively, you can send them an invitation to an address they can sign in with. The easiest fix: your IT makes sure all synced accounts carry an email address in the “mail” attribute. Accounts with an Exchange mailbox have it automatically.
