Skip to main content
PUT
Set the Microsoft 365 user sync groups

Authorizations

Authorization
string
header
required

Authorization: Bearer <token> where <token> is either a neo_sk_<env>_<secret> API key (service account) or a Microsoft Entra ID access token (dashboard user). A key created with scopes reaches only the permission groups they name, and gets 403 insufficient_scope elsewhere; GET /public-api/scopes lists them.

Body

application/json

The groups to sync, by Entra object id, at most 20. An empty list turns the sync off: every user keeps the status they have, and Neo stops managing them.

group_ids
string[]
required
Maximum array length: 20

Response

Success.

data
PublicDirectoryUserSync · object
required

The Microsoft 365 user sync. Every person in groups gets a Chat only user, with no dashboard access and no email. Nested groups count; guests and accounts disabled in Microsoft 365 do not. A person who already has a user keeps their role, and Neo only ever disables a Chat only user it manages. Neo syncs every hour and when you save. Empty groups: the sync is off. directory_connected is false until the workspace's own Microsoft directory is connected, which the sync needs.

meta
object
required