Skip to content

Sync users from directory

GET
/api/security/sync
curl --request GET \
--url https://example.com/api/security/sync \
--header 'Authorization: Bearer <token>'

Synchronizes users and groups from the configured WorkOS directory

Sync result message

Media typeapplication/json
string
Example
Sync started

Access denied

Media typeapplication/json
object
error
required

Indicates an error occurred

boolean
message
required

Error message describing what went wrong

string
Example
{
"error": true,
"message": "Item not found"
}