Syncs your LDAP data based on the data sync configurations. This endpoints requires 2FA.
Make sure LDAP is enabled in Settings > LDAP > Enable before using this endpoint.
Permission required: sync-auth-services-users.
Changelog
| Version | Description |
|---|---|
| 5.2.0 | Include syncAvatars |
| 4.0.0 | Added |
The authenticated user token.
The authenticated user ID.
Enter the 2FA code. This parameter is required if 2FA is enabled in your workspace. See the Introduction to Two-Factor Authentication document for details.
Enter the method with which you get the 2FA code. It can be email, totp, or password. This parameter is required if 2FA is enabled in your workspace.
OK
{
"message": "Sync_in_progress",
"success": true
}Bad Request
{
"success": false,
"error": "TOTP Required [totp-required]",
"errorType": "totp-required",
"details": {
"method": "totp",
"codeGenerated": false,
"availableMethods": [
"totp"
]
}
}{
"success": false,
"error": "LDAP_disabled"
}{
"success": false,
"error": "error-not-authorized"
}Unauthorized
{
"status": "error",
"message": "You must be logged in to do this."
}