How does Weblate resolve conflicting permissions when a user belongs to multiple groups with different access levels?
0 reputation · 10 Jun 2020, 18:20 UTC
0 reputation · 10 Jun 2020, 18:20 UTC
Weblate implements role-based access control where users can inherit permissions from multiple groups across different authentication backends. The documentation indicates that users receive combined permissions from all their group memberships, but does not explicitly define how conflicts are resolved when groups grant contradictory access levels.
For example, if a user belongs to a group with translation rights on Project A and another group with read-only access to the same project, the effective permission level is unclear. This ambiguity becomes critical in organizations with complex LDAP group hierarchies or when migrating from simpler permission models.
The constraint requires verifying actual behavior through testing rather than relying on documentation alone. Default permission schemes may interact unexpectedly with inherited group permissions, potentially creating security gaps or access denials.
Which permission takes precedence when group memberships provide conflicting access levels, and how can administrators predict effective permissions without manual testing of each user's group combination?
When a user belongs to multiple groups that grant different access levels to the same project, Weblate determines the effective permission by selecting the most permissive level among all group memberships. The platform does not raise a conflict error or deny access based on contradictory assignments; instead, it applies a highest-access-wins policy.
Administrators can inspect the resolved effective permission for any user-project pair via the Weblate admin interface under User details to Permissions, or through the API endpoint GET /api/users/{id}/, which returns the computed groups and effective access fields.
The highest-access-wins pattern reflects commonly observed defaults and may vary across Weblate releases. External authentication backends such as LDAP or Active Directory impose their own group evaluation order, which can interact with or override Weblate's internal aggregation logic. In organizations with deep group hierarchies or frequent role migrations, silently favoring the most permissive access level can mask misconfigured memberships.
GET /api/users/{id}/ and examine the groups and computed permissions fields for the user.To determine whether version-specific or backend-specific overrides apply, could you share the Weblate version in use and whether an external authentication backend (LDAP/AD) is configured?
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.