> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scanova.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft Entra ID

> Create a Business Card QR Code for every employee in Microsoft Entra ID, and keep each card up to date as people join, change roles, and leave. Read-only sync.

The Microsoft Entra ID integration reads your company directory and creates a Business Card QR Code for each employee. Scanova can email each person their card with Apple Wallet and Google Wallet links, and it keeps the cards up to date as people join, change roles, and leave.

Access is read-only. Scanova reads users and group members, and never changes anything in your directory.

[Set up Microsoft Entra ID](https://www.youtube-nocookie.com/embed/D4oKaM7ejA4?rel=0)

> [!NOTE]
>
> This integration syncs your employee directory. It is not single sign-on. To let your team log in to Scanova with Microsoft, see [Single sign-on](https://docs.scanova.io/authentication/sso.md).

## Prerequisites

* The Pro Plan or above
* An Entra role that can grant admin consent, such as Global Administrator or Privileged Role Administrator
* A Business Card QR Code in Scanova to use as the sample card. Each employee card copies its design, theme, and company details.

Setup takes about 5 minutes in the Microsoft Entra admin center, then a few minutes in Scanova.

## Set up the app in Microsoft Entra

**1. Register an app**

Open the [Microsoft Entra admin center](https://entra.microsoft.com/), go to **Entra ID**, then **App registrations**, and select **New registration**.

* **Name:** enter `Scanova` (any name works)
* **Supported account types:** choose **Accounts in this organizational directory only (Single tenant)**
* **Redirect URI:** leave it empty

Select **Register**.

**2. Copy the IDs**

On the app's **Overview** page, copy the **Directory (tenant) ID** and the **Application (client) ID**.

**3. Add the API permissions**

1. Open **API permissions** and select **Add a permission**.
2. Choose **Microsoft Graph**, then **Application permissions**. Don't choose Delegated permissions: Scanova syncs in the background, without a user present.
3. Search for and select **User.Read.All** and **GroupMember.Read.All**, then select **Add permissions**.
4. Select **Grant admin consent for** your organization, and confirm with **Yes**.
5. Check that the **Status** column shows **Granted** for both permissions.

The default **User.Read** (Delegated) permission can stay. Scanova doesn't use it. Consent can take a few minutes to apply.

**4. Create a client secret**

1. Open **Certificates & secrets**, then **Client secrets**, and select **New client secret**.
2. Add a description, such as `Scanova sync`, and choose an expiry, such as 24 months.
3. Select **Add**, then copy the secret's **Value** straight away. Microsoft shows it only once.

> [!WARNING]
>
> Copy the **Value** column, not the **Secret ID**. Note the expiry date: before it, create a new secret and paste it into **Update credentials** in Scanova. If a secret expires, syncing stops and the account owner gets an email.

## Connect in Scanova

**1. Open the integration**

From **Integrations**, select **Add Integration**, then find the **Microsoft Entra ID** card and select **Setup**.

**2. Connect**

Paste the **Directory (tenant) ID**, **Application (client) ID**, and **Client secret**. Select **Test connection**, then **Save and continue**.

**3. Choose who gets a card**

Choose **All users**, or **Selected groups** to sync only members of the groups you pick. Security groups and Microsoft 365 groups both work, and members of nested groups are included.

**4. Pick the sample card**

Choose the Business Card QR Code that new employee cards copy their design, theme, and company details from. Changing it later applies only to cards created after the change.

**5. Map the fields**

Match Entra fields to the card's fields, such as first name, job title, and email. Leave a field as **Not mapped** to skip it.

**6. Set the QR Code design**

Optionally, choose a design for every employee's QR Code.

**7. Choose the settings**

* **Sync profile photos:** uses each employee's Entra ID photo on their card
* **Email employees their card:** sends each employee their card link with Apple Wallet and Google Wallet passes when their card is created or changes
* **Folder** and **Tags:** where new cards go. Every card is also tagged **Entra ID**.

**8. Start syncing**

Review your choices and select **Start syncing**.

## What happens after you start syncing

* The first sync creates a card for each employee in scope. On the Pro Plan each sync creates up to 100 new cards, so a large directory fills in over a few syncs.
* After that, Scanova syncs automatically in the background. Select **Sync now** to run a sync straight away.
* When an account is disabled, deleted, or leaves the selected groups, its card moves to Trash
* Employee cards count toward your plan's QR Code limit. Employees over the limit are skipped and counted under **Skipped: plan limit**.
* **Sync history** and **Activity log** on the integration page show what each sync did

## Prepare your employee data

Cards are filled from these Entra fields, and you choose which goes where in field mapping:

* First and last name
* Job title, department, and company name
* Office location and office address
* Mobile phone and business phone
* Email (Mail)
* Employee ID

Only enabled accounts get a card. The card is emailed to the employee's **Mail** address. Profile photos are used when **Sync profile photos** is on and the employee has a photo in Entra ID.

## Manage the integration

Open the integration from **Integrations** to see its status and counters.

* **Sync now:** runs a sync straight away
* **Edit settings:** changes who gets a card, the sample card, field mapping, QR Code design, and settings
* **Update credentials:** replaces the client secret, for example before it expires
* **Disconnect:** disconnects your directory

## Troubleshooting

| Error | Cause and fix |
| - | - |
| `invalid_client` | The secret is wrong or has expired, or the **Secret ID** was pasted instead of the **Value**. Create a new client secret and paste its **Value**. |
| `AADSTS700016` or `unauthorized_client` | The **Application (client) ID** or **Directory (tenant) ID** is wrong. Copy both again from the app's **Overview** page. |
| `Authorization_RequestDenied` or insufficient privileges | A permission is missing, a Delegated permission was added instead of an Application permission, or admin consent wasn't granted. Grant admin consent, wait a few minutes, and test again. |

## Related

* [Single sign-on](https://docs.scanova.io/authentication/sso.md) — let your team log in to Scanova with Microsoft
* [Integrations overview](https://docs.scanova.io/integrations/overview.md) — every service you can connect to Scanova


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.