Skip to main content
POST
Run the Microsoft 365 user sync now

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

confirm_removals: true with held_run_id, the run_id of the REMOVALS_HELD result you reviewed, confirms that held set in your name and disables those users, while the groups stay the same. A held_run_id that no longer names the held set is a 400: read the result again. Leave confirm_removals false otherwise.

confirm_removals
boolean
default:false
held_run_id
string | null

Response

Success.

data
PublicDirectoryUserSyncRunStarted · object
required

started is false when a sync was already running; its result shows in last_run when it ends.

meta
object
required