---
title: "Connect Microsoft Entra to your organization"
description: "How to set up Microsoft Entra single sign-on for a managed Bearly organization in Bearly Platform, and provision members and groups from Entra ID with SCIM."
canonical: "https://bearly.ai/docs/platform/microsoft-entra/"
markdown: "https://bearly.ai/docs/platform/microsoft-entra.md"
---

# Connect Microsoft Entra to your organization

HTML: [https://bearly.ai/docs/platform/microsoft-entra/](https://bearly.ai/docs/platform/microsoft-entra/)

> How to set up Microsoft Entra single sign-on for a managed Bearly organization in Bearly Platform, and provision members and groups from Entra ID with SCIM.

A managed organization can connect its Microsoft Entra tenant so that members sign in to Bearly with **Continue with Microsoft**. The same organization can also provision people and groups from Microsoft Entra, so joiners, leavers, and group changes reach Bearly without hand edits. Either part works on its own.

> **Note**
> The **Microsoft Entra** section appears only to administrators of a managed organization, which is an organization with a managed email domain. See [Request a managed organization](https://bearly.ai/docs/platform/organization.md#request-a-managed-organization).


## Before you start

- You are an **Admin** of the managed organization.
- The organization's managed domain is a verified domain in your Microsoft Entra tenant, and each person's Microsoft account has an **Email** in that domain. Personal Microsoft accounts and guests from other organizations cannot use Microsoft sign-in.
- You have the tenant's **Tenant ID** from the Microsoft Entra admin center, under **Entra ID** → **Overview** → **Properties**.
- Someone who can grant tenant-wide admin consent in Microsoft Entra, such as a Global Administrator, Privileged Role Administrator, Cloud Application Administrator, or Application Administrator, is available to approve Bearly.

Bearly never asks for a Microsoft application secret. You provide only the tenant ID, and a Microsoft administrator approves Bearly on Microsoft's own consent page.

## Set up Microsoft sign-in



1. Open [Bearly Platform](https://platform.bearly.ai) (account menu → **Bearly Platform**) and select **Settings**. Scroll to **Microsoft Entra** and select **Set up Microsoft Entra**.

2. Under **Configure sign-in**, paste the tenant ID into **Directory tenant ID**, make sure **Allow Microsoft sign-in** is on, and select **Save and continue**.

   Bearly confirms with **Microsoft Entra login updated**, and the step shows **Saved**.

3. Under **Grant admin consent**, select **Connect Microsoft**. Microsoft's approval page opens. From the desktop app it opens in your system browser.

4. Sign in to Microsoft with an administrator account from the same tenant, review the permissions, and accept. Bearly asks only to sign people in and read their name and email address.

5. When Bearly shows **Microsoft connected**, select **Return to Bearly**. If you started from the desktop app, close the browser tab and return to the app.

6. Under **Test sign-in**, confirm the connection works: in another browser or after signing out, choose **Continue with Microsoft** with an account whose email ends in the organization's managed domain.



The **Microsoft sign-in** row now shows **Enabled**, and its button reads **Manage Microsoft Entra**. A tenant can be connected to one Bearly organization.

After approval, Bearly is listed under **Enterprise applications** in your Microsoft Entra tenant. Manage it there like any other application: require assignment under **Properties**, assign users and groups, or apply Conditional Access. Those Microsoft settings decide who can reach Bearly's sign-in. Bearly's own membership rules, described next, decide what happens after that.

## How members sign in

On the sign-in page, members select **Continue with Microsoft** and choose their work or school account. On the web, the sign-in continues in the same tab. In the desktop app, Microsoft opens in the system browser, and the app comes to the front and signs in when Microsoft finishes; the browser tab can then be closed. The iOS app does not offer Microsoft sign-in, so use email sign-in there.

Signing in with Microsoft uses the same Bearly account as signing in by email with that address, so existing chats and projects are unaffected. Email sign-in stays available to every member.

What happens on a person's first Microsoft sign-in depends on the organization's **Managed-domain access** setting on Bearly Platform's **Settings** page:

- **Automatically add anyone with @domain**: the person becomes a member immediately and receives the organization's default policy.
- **Require an organization administrator to add each person**: the person must already be on the organization, either [added by an administrator](https://bearly.ai/docs/platform/members.md) or provisioned from Microsoft Entra as described below. Otherwise Bearly reports that the account is not allowed to join the organization.

A member whose **Account access** has been switched off cannot sign in with Microsoft until an administrator restores it.

## Open Bearly in one click from your portal

Point your intranet, SharePoint page, or Microsoft app tile at `https://bearly.ai/dashboard/sign-in/microsoft`. A member who is already signed in to Microsoft lands in Bearly without choosing an account or pressing **Continue with Microsoft**. Someone already signed in to Bearly goes straight to the app. In a browser on a computer where the member has signed in to the Bearly desktop app (version 5.2.13 or later), the link opens the desktop app instead, with **Continue in browser** on the page; members change this under **Settings** → **Get desktop app** → **Links**. Microsoft still shows its account list when a person is signed in to several accounts, and your own sign-in rules, such as a smart card or multi-factor prompt, still apply.

The Bearly app that Microsoft added to your tenant opens the Bearly home page, and Microsoft doesn't let a tenant administrator change its address. To make the tile in My Apps and the Microsoft 365 app launcher open the one-click link:



1. In the Microsoft Entra admin center, go to **Enterprise applications** → **New application** → **Create your own application**. Name it `Bearly`, choose **Integrate any other application you don't find in the gallery (Non-gallery)**, and select **Create**.
2. Open **Single sign-on**, choose **Linked**, enter `https://bearly.ai/dashboard/sign-in/microsoft` as the sign-on URL, and select **Save**. Under **Properties**, you can upload the Bearly logo.
3. Under **Users and groups**, assign the same people who use Bearly.
4. Open the original **Bearly** application → **Properties**, set **Visible to users?** to **No**, and select **Save**. Leave **Enabled for users to sign-in?** on **Yes**: members still sign in through it.



The new tile appears in My Apps within a minute or two. If it doesn't show in the Microsoft 365 app launcher, check that **Enterprise applications** → **App launchers** → **Settings** → **Users can only see Microsoft 365 apps in the Microsoft 365 portal** is off.

## Turn off Microsoft sign-in

Select **Manage Microsoft Entra**, turn off **Allow Microsoft sign-in**, and select **Save and continue**. New Microsoft sign-ins for the tenant stop. Members keep their Bearly accounts and memberships and can continue with email sign-in.

## Provision members and groups from Microsoft Entra

Provisioning lets Microsoft Entra add members, keep their names current, suspend people who leave, and mirror groups into the organization. Bearly administrators keep control of roles, policies, and spending limits; provisioning never changes them.

### Generate the provisioning token in Bearly



1. Under **Microsoft Entra** on Bearly Platform's **Settings** page, find **User and group provisioning** and select **Set up provisioning**.

2. Select **Generate token**.

3. Copy the **Tenant URL** and the **Secret token**. Bearly shows the token only once. If you lose it, generate a new one.



The row shows **Configured**, and its button reads **Manage provisioning**.

### Connect the Microsoft Entra provisioning service

Provisioning uses a dedicated enterprise application in your tenant. [Microsoft's SCIM tutorial](https://learn.microsoft.com/en-us/entra/identity/app-provisioning/use-scim-to-provision-users-and-groups#integrate-your-scim-endpoint-with-the-microsoft-entra-provisioning-service) has the full walkthrough; the steps below cover what Bearly needs.



1. In the Microsoft Entra admin center, go to **Entra ID** → **Enterprise apps** → **New application** → **Create your own application**. Name it, choose **Integrate any other application you don't find in the gallery**, and create it.

2. Open the application, select **Provisioning**, and start a new configuration. Enter Bearly's values in **Tenant URL** and **Secret Token**, select **Test Connection**, and save the configuration. If your admin center shows the older layout, choose **Get started**, set **Provisioning Mode** to **Automatic**, and enter the same values under **Admin Credentials**.

3. Under **Attribute mapping**, edit the user mappings to match the table below and confirm the group mappings. Save the changes.

4. Under **Users and groups**, assign the people and groups Bearly should receive. Keep the scope at **Sync only assigned users and groups**.

5. Select **Provision on-demand** and provision one user and one small group. Confirm they appear under **Members** and **Groups** in Bearly before going further.

6. Select **Start provisioning**. The first cycle can take a while. After that, Microsoft checks for changes about every 40 minutes.



#### User attribute mappings

| Microsoft Entra attribute | Target attribute | Notes |
| --- | --- | --- |
| `userPrincipalName` | `userName` | The matching attribute. It must be the person's email address in the managed domain. If user principal names differ from email addresses in your tenant, map `mail` instead, so provisioning and Microsoft sign-in refer to the same address. |
| `objectId` | `externalId` | Change this from the default `mailNickname`. |
| `Switch([IsSoftDeleted], ...)` | `active` | Keep the default expression. A person who is unassigned, disabled, or deleted in Microsoft Entra becomes suspended in Bearly. |
| `displayName` | `displayName` | Optional. Bearly uses it as the member's name. |

Bearly stores only these four attributes. It ignores any other user mapping, including given and family names, phone numbers, addresses, job title, department, manager, and roles, so you can leave Microsoft's default mappings in place. Roles are assigned in Bearly, never from Microsoft Entra.

For groups, keep the default mappings: `displayName` to `displayName`, `objectId` to `externalId`, and `members` to `members`. As with users, Bearly ignores any other group mapping.

### What provisioning changes in Bearly

- A newly assigned person is added as a **Member**. Someone already on the organization with the same email is linked rather than duplicated, and their role, policy, and limit stay as they are. If `displayName` is mapped, their name in Bearly updates to match.
- A person who is unassigned, disabled, or deleted in Microsoft Entra is suspended, not removed. They show **Suspended** under **Members**, lose access through the organization, and can no longer sign in with Microsoft, but their data is kept. Restore access by assigning them again in Microsoft Entra.
- Assigned groups appear under **Groups** marked **Synced**. While a group is syncing, its name and membership come from Microsoft Entra, so it cannot be renamed or deleted in Bearly. You can still assign a policy and priority and add extra members by hand; members that came from Microsoft Entra are also marked **Synced**.
- A group that Microsoft Entra stops provisioning becomes **Inactive** in Bearly. It keeps its policy, its project shares, and any members you added by hand, and it becomes active again if Microsoft Entra provisions it later.
- An **Inactive** synced group can be renamed or deleted, because Microsoft Entra no longer manages it. Do that when you retire a group in Microsoft Entra and create a replacement with the same name: until the old group gives up the name, Microsoft Entra cannot create the new one and reports a conflict every cycle.
- Changes made by provisioning appear in the **Audit log** attributed to **Identity provider**.

Limits to plan around:

- Every provisioned person needs an email address in the managed domain. Anyone else fails in Microsoft's provisioning logs.
- Group names must be 2 to 120 characters, and a single group update can include at most 500 members.
- Nested groups are not supported. Assign the groups whose direct members should sync.
- Provisioning cannot suspend the organization's last active administrator. Make another member an **Organization admin** first.

Manage provisioned people from Microsoft Entra rather than from **Members**. If you remove a provisioned member in Bearly while they are still assigned in Microsoft Entra, a later provisioning cycle can add them again.

### Rotate or disable the token

Select **Manage provisioning** under **Microsoft Entra**.

- **Rotate token** issues a new token and immediately stops the old one. Provisioning pauses until you paste the new token into the Microsoft Entra configuration and run **Test Connection** again.
- **Disable** stops provisioning and rejects the existing token. Existing members, groups, and memberships stay as they are, and Microsoft Entra can no longer update them. To start again, select **Generate token** and update the Microsoft Entra configuration.

## Troubleshooting

| What you see | What to do |
| --- | --- |
| **This Microsoft organization is not configured for Bearly.** | The account belongs to a tenant that is not connected, or **Allow Microsoft sign-in** is off. Check the saved **Directory tenant ID**. |
| **Your Microsoft account did not provide a work email.** | Ask a Microsoft administrator to set the person's **Email** in Microsoft Entra to an address in the managed domain. |
| **Microsoft did not confirm this account's email domain.** | The address uses a domain that is not verified in the tenant, for example an external address. Use an address in a verified domain. |
| **Use the Microsoft account for your Bearly organization.** | The account's email is outside the organization's managed domain. |
| **Your Microsoft account is valid, but it is not allowed to join this Bearly team.** | The organization requires an administrator to add each person, the membership is suspended, or that email is already linked to a different Microsoft account. An organization administrator can add or restore the member. |
| **This Microsoft sign-in expired or was already used.** | The sign-in must finish within a few minutes of starting. Start again from the sign-in page. |
| **Failed to update Microsoft Entra login** | Check that the tenant ID is complete and correct. A tenant can be connected to only one Bearly organization. |
| **Microsoft did not approve the connection.** | Consent was declined, or the account cannot grant admin consent. Select **Connect Microsoft** again and sign in with an eligible administrator. |
| **Microsoft tenant approval could not be verified.** | The approving account belongs to a different tenant than the saved **Directory tenant ID**. Correct the ID, or use an administrator of the saved tenant. |
| **Test Connection** fails in Microsoft Entra | The **Tenant URL** or **Secret Token** is wrong, or provisioning was rotated or disabled in Bearly. Generate a new token and paste both values again. |
| A provisioning log entry says the user name must be an email in the managed domain | The mapped attribute for that person is outside the organization's domain. Correct the person's address or the `userName` mapping. |

For help with a connected tenant, contact [Bearly Support](mailto:support@bearly.ai).

## Continue through the documentation

- [Documentation index](https://bearly.ai/docs.md): Browse every Bearly guide.
- [Previous: Show members an access banner they must accept](https://bearly.ai/docs/platform/access-banner.md)
- [Next: Distribute skills to your organization from a shared folder](https://bearly.ai/docs/platform/skill-stores.md)
- [Related: Create and manage a Bearly organization](https://bearly.ai/docs/platform/organization.md)
- [Related: Add and manage organization members](https://bearly.ai/docs/platform/members.md)
