Hide LDAP Sync tab on Roles and permissions page for Premium license
What does this MR do and why?
For self-managed GitLab, when the GitLab instance is configured with a LDAP server and the custom_admin_roles feature flag is enabled, going to Admin area -> Settings -> Roles and permissions will show a tab bar with a LDAP Synchronization tab:
| Roles and permissions page | LDAP Synchronization tab |
|---|---|
![]() |
![]() |
The LDAP sync requires access to the custom roles feature, which is Ultimate-only. Premium plans can access the Roles and permissions page but not to custom roles, so the LDAP sync tab should be unavailable to Premium plans.
This MR fixes a bug where the tab bar with the LDAP Synchronization tab was shown for Premium plans. It now hides the tab bar altogether. Note that this is a display-only bug, clicking on the tab will show an error because backend prevents the feature from being used:
| Before | After (no tab bar) |
|---|---|
![]() |
![]() |
How to set up and validate locally
Acquire a Premium license following this handbook page, then follow this video guide:
Related to #546035 (closed)



