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

# Sync users from Microsoft 365

> Give everyone in a Microsoft 365 group a Chat only user in Neo, and remove them when they leave the group

Pick one or more groups from your own Microsoft 365 tenant, and Neo keeps a **Chat only** user for each person in them. You no longer add new employees by hand, and a person who leaves the group loses access to Neo.

A Chat only user has no dashboard access and gets no email. They use Neo in Microsoft Teams, and you can choose them for a chat agent's **Specific people** list. Roles are explained on [Role-Based Access Control](https://docs.neoagent.io/product/rbac.md#user-roles-and-permissions).

## What the sync does

Neo syncs every hour, and at once when you save the groups.

| Situation | What Neo does |
| - | - |
| A person is in a group and has no user in Neo | Adds an active **Chat only** user for them, with no email |
| A person in a group already has a user | Keeps their role. An Owner, Admin, User or Viewer is never changed |
| A person in a group has a disabled **Chat only** user | Enables it again, and manages it from now on |
| A person leaves every sync group, or their account is disabled in Microsoft 365 | Disables the **Chat only** user that the sync manages |
| A person comes back to a group | Enables their user again |

People in nested groups count. Guests in your tenant do not. One sync adds at most 200 people, so a larger group fills over the next hourly syncs.

The group decides. If you disable a synced user by hand while the person is still in a group, the next sync enables them again. To remove a synced person, take them out of the group in Microsoft 365. On the **Users** tab, a synced user shows **Microsoft 365** beside the **Chat only** role.

## Set it up

You need the Admin or Owner role. Neo reads your groups with the admin consent of the [Microsoft Teams — Technician Mapping](https://docs.neoagent.io/integrations/teams/workforce-availability.md#set-it-up) integration, so a Microsoft 365 admin must grant that consent first.

**1. Open the card**

Go to [**Roles & Access** → **Users**](https://dashboard.neoagent.io/rbac?tab=users) and open **Sync users from Microsoft 365**.

**2. Pick the groups**

Search for a group by name and click **Add**. You can pick up to 20 groups.

**3. Save**

Click **Save and sync**. Neo syncs at once, and the card shows what the sync did: how many users it added, enabled again and disabled.

You can also ask the Neo Support Agent to set it up for you, for example: "Sync our users from the Microsoft 365 group All Staff."

## Safety checks

Neo changes nothing when it cannot read every group, when a group no longer exists, or when the groups hold more than 5,000 members. The card shows the reason.

If a sync would disable more than half of the synced users, and at least five, or the groups have no enabled member, Neo adds and enables users but disables nobody. This protects you when a group is emptied by mistake or the wrong group is picked. The card says how many users the sync kept, and they stay held at every sync until an admin confirms. Check the groups, then click **Review removals…** and **Disable** to remove them. Neo records who confirmed in that admin's activity history. If the groups change first, the confirmation no longer applies.

If some changes fail, the card says how many, and the next sync tries them again.

If another user in the workspace already has a person's email, for example an open invitation, Neo does not add that person. The card lists them. Cancel the invitation, and the next sync adds them.

## Turn it off

Remove every group and click **Turn off sync**. Every user keeps the status they have now, and Neo stops managing them.


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