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

Organizations with multiple owners #243

Closed
brauhausdc opened this issue Oct 31, 2022 · 1 comment
Closed

Organizations with multiple owners #243

brauhausdc opened this issue Oct 31, 2022 · 1 comment

Comments

@brauhausdc
Copy link

I'm still working my way through getting organizations implemented in my project. More a question, but I didn't see any specific way to do this - and it may be useful. I'd like to be able to have multiple "owners" or some other "admin" functionality so that the organization doesn't have to be infinitely tied to a specific user - users come and go, organizations (hopefully) persist.

@brauhausdc brauhausdc changed the title Organizations with multiple owners or admins Organizations with multiple owners Oct 31, 2022
@bennylope
Copy link
Owner

There are a couple of issues here that are distinct: (a) organization "owner" and (b) organization members with different permission levels.

Ownership

A single organization owner is a [fairly] fundamental part of the architecture at this point. It's present due to the needs of early projects that used this library and it's a general pattern that this library borrowed from a lot of other SaaS and account based services, where there's often one admin user who has "ultimate" rights. In such a case there may be multiple admins, but only the "owner" can, for example, delete the account.

Could it be changed? Yes! I have no principled opposition to removing the constraint of one organization owner per organization, as long as it's backwards compatible.

Admin users and user types

Do you have to make use of the owner concept in your code? No! The abstract models are designed to account for all kinds of other use cases, such as adding "user types" to the custom OrganizationUser model in your project. In such a case you would still be required to have an OrganizationOwner model of your own, but there's no hard requirement that you make use of it.

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