--- title: "Sync users ABAC attributes from LDAP" slug: "sync-users-abac-attributes-from-ldap" updated: 2026-09-03T14:50:33Z published: 2026-09-03T14:50:33Z canonical: "developer.rocket.chat/sync-users-abac-attributes-from-ldap" --- > ## Documentation Index > Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt > Use this file to discover all available pages before exploring further. # Sync users ABAC attributes from LDAP Post/api/v1/abac/users/sync![Defense](https://raw.githubusercontent.com/RocketChat/Rocket.Chat-Open-API/main/images/Defense.svg) - Syncs ABAC attributes for specified users from LDAP. - Refreshes user ABAC attributes by reading current data from LDAP and applying the configured LDAP → ABAC attribute mapping. - Users can be identified by usernames, ids, emails, or ldapIds. - Requires the LDAP Enterprise and ABAC licenses, the `abac-management` and `manage-abac-admin-room-attributes` permissions, and the global setting `ABAC_Enabled` to be turned on. ### Changelog | Version | Description | | --- | --- | | 8.0.0 | Added | | 8.5.0 | Added the `manage-abac-admin-room-attributes` granular permission requirement. | Header parametersX-Auth-TokenstringRequired The `authToken` of the authenticated user. ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f X-User-IdstringRequired The `userId` of the authenticated user. ExamplerbAXPnMktTFbNpwtJ Body parameters At least one of these properties is required: - usernames (string[]) — Array of Rocket.Chat usernames (1–100 items, unique) - ids (string[]) — Array of Rocket.Chat user IDs (1–100 items, unique) - emails (string[]) — Array of email addresses (1–100 items, unique) - ldapIds (string[]) — Array of LDAP IDs (1–100 items, unique) Example 1 ```json { "usernames": [ "alice" ], "ids": [ "userId1" ], "emails": [ "bob@example.com" ], "ldapIds": [ "ldapId123" ] } ``` object usernames Array of string string ids Array of string string emails Array of string string ldapIds Array of string string Responses200 OK Success ```json { "success": true } ``` object successboolean 400 Bad Request ABAC disabled ```json { "success": false, "error": "error-abac-not-enabled" } ``` Invalid body (schema validation) ```json { "success": false, "error": "error-invalid-body-params" } ``` object successboolean errorstring 401 Unauthorized Unauthorized login attempt ```json { "success": false, "error": "error-unauthorized" } ``` object successboolean errorstring 403 Forbidden Missing required ABAC permissions ```json { "success": false, "error": "error-not-authorized" } ``` object successboolean errorstring