Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group extension with role mapping #1330

Open
gdorsi opened this issue Feb 10, 2025 — with Linear · 0 comments
Open

Group extension with role mapping #1330

gdorsi opened this issue Feb 10, 2025 — with Linear · 0 comments

Comments

Copy link
Contributor

gdorsi commented Feb 10, 2025

Current Behavior

  • When a group extends another group, members inherit the highest permission level between the groups
  • Example: If a user has "writer" access in group A and "reader" access in group B, and group B extends group A, the user gets "writer" access in both groups

Problem Statement

There's a need to support permission level capping when extending groups, particularly for cases where organization-wide access should be restricted to specific permission levels (e.g., read-only access to billing documents).

Proposed Solution

Add role mapping capability to group extension with two possible API designs:

billing.extend(organizationGroup, "reader")

After this every member from organizationGroup that has a role that can be inherited (admin, reader, writer) is set to "reader" on billing.

It will be also possible to upgrade the roles from the source group:

billing.extend(organizationGroup, "writer")

With this extension every member from organizationGroup, even readers, will become a writer on billing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant