Werk #19499 · Apr 1, 26
LDAP: api groups_to_roles now supports custom user roles
The LDAP connection REST API endpoints did not properly handle custom user
roles in the groups_to_roles sync plugin. When creating or updating an LDAP
connection with a custom role (e.g. a cloned built-in role), the request was
rejected because the schema only accepted the three built-in roles.
Additionally, even if a custom role was stored internally, the API response would silently strip it because the response schema also only knew about built-in roles.
Both the request and response schemas now dynamically validate and include custom user roles defined on the site.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- REST API
- Versions:
- 3.0.0b1Not yet releasedProUltimateUltimate + MTCloud
- 2.5.0b1ProUltimateUltimate + MTCloud
- 2.4.0p26ProUltimateUltimate + MTCloud