LDAP Sync

Syncs your LDAP data based on the data sync configurations.

HTTP MethodURLRequires Auth

POST

/api/v1/ldap.syncNow

Example Call

curl --location --request POST 'http://localhost:3000/api/v1/ldap.syncNow' \
--header 'x-auth-token: 0ueGH0dyW5ewtemsyiBlrC8pU4yBbRUtReXiglvisoZ' \
--header 'x-user-id: 2tTEqR7ZNMJ4HGGNa' \
--header 'x-2fa-code: 773917'

Example Response

Success

{
    "message": "Sync_in_progress",
    "success": true
}

Error

Any of the following errors can occur:

  • Authorization: Requires an authentication token for the request to be made.

  • No Permission: This occurs when the authenticated user doesn't have the sync-auth-services-users permission.

  • LDAP Disabled: This occurs when the LDAP connection is disabled.

  • TOTP Required: Requires two-factor authentication for the request to be made.

  • Invalid TOTP: Requires a valid two-factor authentication code.

{
    "status": "error",
    "message": "You must be logged in to do this."
}

Change Log

VersionDescription

4.0.0

Added

5.2.0

Include syncAvatars on ldap.syncNow

Last updated

Rocket.Chat versions receive support for six months after release.