PUT
/v1/workspace/directory/provisioningSet directory provisioning
Sets whether a directory sync invites the people it finds (autoInvite) and which seat those invites carry (defaultRole: admin, team_lead or member - never owner). Both fields are optional and an absent one is left alone. Reach for it to switch automatic provisioning on or off for a connected Google or Microsoft domain.
Access class: workspace:admin.
Send request
Use the documented inputs to call this endpoint directly.
API serverbase URL
Bearer tokensessionoptional
Stored only in this browser for the session security scheme and reused on every API page in this group.
Request body
application/jsonrequiredbodyoptional
paramsobjectoptional
queryoptional
Responses
200application/json
the action's answer
{
"data": {
"autoInvite": true,
"defaultRole": "string",
"lastSyncedAt": "string",
"provider": "string"
}
}dataoptional
defaultapplication/json
a refusal: {"error": "<what a person needs to read>"}. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.
{
"error": "string"
}errorstringrequired