LDAP user provisioning
Configure access-group users and groups in a search scope as members and teams, with LDAP limits and troubleshooting.
When LDAP is the active auth provider, AI Gateway reads the directory with the bind account in Auth providers. Access group users become members. Groups in a separately configured search scope become teams. Active Directory and OpenLDAP are supported.
Who gets synced
Section titled “Who gets synced”Users must be below the user base DN and belong to the access group directly or through nested groups. OpenLDAP follows at most ten group levels. Active Directory uses the server’s transitive membership rule. Users outside the user base DN are excluded from both sign-in and sync.
- A user removed from the access group or deleted from the directory becomes a member-removal candidate. If the access group itself is missing, the run fails instead of treating it as an empty group.
- Teams have a separate scope. A group below the Group base DN that matches the Group filter becomes a team. Only its nested members who are also assigned through the access group join that team.
- Team names come from group
cn. Different groups with the same name become separate teams. - OpenLDAP reads
memberforgroupOfNames,uniqueMemberforgroupOfUniqueNames, andmemberUidforposixGroup. It comparesmemberUidwith useruidvalues and includes every matching user, including users with several uid values. - Email comes from the first populated attribute in the Auth provider’s email-attribute list. AD installations without
mailcan useuserPrincipalNameas a later fallback. Users without an email appear asmissing_emailin the result.
For member and team changes, seats and permissions, dry runs, execution and scheduling, follow How user provisioning works.
Prepare the connection
Section titled “Prepare the connection”Follow LDAP authentication setup for the connection and certificates. The bind account needs read access to users, the access group, nested groups and Team groups. Write access is unnecessary: sync never changes the LDAP directory.
The server kind, URL and access group DN are read-only on the provisioning page. Change the bind DN, password, user base DN, email attributes and CA in Auth providers. The next run uses the active configuration. When the page observes a changed provider revision, it discards the old preview and confirmation while keeping unsaved search-scope edits.
Configure the group scope
Section titled “Configure the group scope”- As an administrator with user-management permission, open Organization → Auth providers and select Manage provisioning on the active LDAP card.
- Check the read-only server kind, LDAP server URL and access group DN.
- If you need teams, enter a group base DN and optionally a parenthesized LDAP filter.
| Field | Example | Meaning |
|---|---|---|
| Group base DN | OU=Groups,DC=corp,DC=example,DC=com | Search for Team groups below this scope. |
| Group filter | (cn=aigw-*) | Select names starting with aigw-. Omit it to select every supported group in the scope. |
- Save and run a dry run to review member and team changes. Run the sync or enable scheduling after checking the scope.
User status and limits
Section titled “User status and limits”With Follow directory user status enabled, assigned AD users with disabled accounts are deactivated. Memberships, roles and Gateway Keys stay. OpenLDAP has no synchronized disabled state, so assigned members deactivated by hand are activated again.
- AD primary-group-only membership and POSIX
gidNumberprimary groups are unsupported. Do not choose a primary group such asDomain Usersas the access group. - AD support is limited to one domain. Multi-domain forests and Global Catalog searches have not been verified as supported.
- OpenLDAP referrals are not followed. A referral in user search, access-group verification, the nesting graph or Team search fails the whole run. The configured server must serve all required scopes locally.
- Every page is read, but the results are not a snapshot. Directory changes during retrieval can cause duplicate or missing entries. A later run reads current data but does not automatically restore roles or keys from members or teams already removed.
- The default member-removal threshold is 100%, which permits removing everyone. Review removals before the first run and after changing a search scope.
When a run stops
Section titled “When a run stops”| Reason | What to check |
|---|---|
directory_application_not_found | Check the access group and user base DN in Auth providers, and the group base DN on this page. The access group must have a supported group class. |
directory_unauthorized | Check the bind DN, password and required read permissions. |
directory_rate_limited | The server returned busy. Check its load and retry on a later run. |
directory_unavailable | Check URL, CA, networking, operation timeouts, early search termination, paging support, read limits and OpenLDAP referrals. |
removal_rate_exceeded | Check access-group membership and user base DN before raising the threshold. |
interrupted | The ten-minute run limit or process termination interrupted execution. Already applied changes remain; check the history. |
Limits are 50,000 assigned users, 1,000 Team groups and 50,000 members per group. OpenLDAP also limits nesting-graph groups to 10,000 and all users below the user base DN to 50,000. Narrow an overly broad scope. If any required read fails, the run changes no member, team or team membership.