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

FR: extend default roles by api #82

Closed
paulwer opened this issue May 21, 2023 · 4 comments
Closed

FR: extend default roles by api #82

paulwer opened this issue May 21, 2023 · 4 comments

Comments

@paulwer
Copy link

paulwer commented May 21, 2023

Is there currently a way to extend the default roles of organizations by custom roles, which then are applied by default for all organizations?

Usage: we had ressources, which are connected to organizations and want to manage access within the organizations without writing a programm which checks any org, if the neccessary roles are defined. ex. view-ressources-name, manage-ressources-name

@xgp
Copy link
Member

xgp commented May 21, 2023

Without an example, I'm not sure what you're suggesting. Today, an OrganizationRole is associated with an Organization. There are defaults when you create an Organization that pertain to permissions within the role (e.g. view-organiztion, manage-organization, etc.), and OrganizationRoles are not shared across Organizations.

We put together a proposal for de-coupling that, so that OrganizationRoles are independent of Organizations: #48 Is that what you're looking for? If not, share an example scenario.

@paulwer
Copy link
Author

paulwer commented May 21, 2023

Unbenannt

Organizations has definded and default roles. default roles (my observation) gets created on organization-creation and cannot be deleted. They are used for rbac within org-use-cases. defined-roles can be created within each org-individualy.
Our "wish" is, that we can administrate additional default-roles, which can be used within all organizations independently.

Our current workflow-plan is to create a service, which checks and define these additional roles, as needed.

@xgp
Copy link
Member

xgp commented May 21, 2023

Thank you for explaining further. There is not currently a way to do this. For our own applications, we do this at organization creation, as you suggest in your workplan.

The proposal I linked to above would be to move all roles to a default, "rather" than making them part of a specific organization. In the prototype of that proposal, we have done the migration in a way such that any roles you define in "all" organizations would become defaults. Beyond that, it's not yet decided if/how we would deal with roles that are part of only specific organizations.

@xgp
Copy link
Member

xgp commented May 22, 2023

Closing in favor of #48

Please comment there.

@xgp xgp closed this as completed May 22, 2023
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

2 participants