-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
Approach for subdivision within multi-tenant app #314
Comments
Depending on how you set it up it might require some twist in mind. E.g. I write a software for managing projects. Each project might assigned to a team and/or an individual person. A person now also has a team assigned. Now assigning a user of the team Depending on what you want a user to give access to, this same approach might work - but can also make it very hard. E.g. having a person in multiple teams will now again make it harder - having projects assigned to multiple teams as well. Please also take a read on this where I discuss some ideas with the former lead developer: #270 You ask me if this is possible - well, this always depends on your use-case. This use-case just describes that you have a hierarchy - but not who should have access to what and when. So, I can't answer you to this question before providing me additional information about the relation of role assignments. |
Thanks for the detailed response. If we take your example then, in my case projects would only ever be assigned to one team, and as an initial release I think having users belonging to one team would be fine as well. The exception being the global admins or The At the moment my Company1, Company2, Company3 requirement is handled by adding an The teams capability is a new requirement that I think could be achieved using scopes. Or just by mimicking what I have already for Does that help narrow down the requirement somewhat? Thanks for your help! |
So ... why not do it as I did with the It is a twist in mind, as I said, which makes it possible. Every time I ask for a permission, I ask so as of the scope of a particular project. If now my function But to be honest, an option for querying for an array of scopes, where it would match if either of those are given, could maybe help here. It might require some performance testing though. If you have the time, I'd assist you to create a PR for it if you rather want to go down this line. But this wouldn't be much different than running it with the option of a scope multiple times, I guess. I'll leave this up to you. |
Hi,
I need to support multiple tenants (different companies), which are further subdivided by teams that should not be able to see each other's data. An example structure below:
Within each of those teams I then want to be able to assign permissions to each user.
There should be a team owner that's effectively the admin for that team. And a super user at each company level that has control over their teams.
Is this possible solely through meteor-roles?
It looks like scopes might be suitable but I think you'd need the ability to define multiple scopes - one for the company and another for the team.
Any ideas on how to achieve this would be hugely appreciated 👍
Thanks!
The text was updated successfully, but these errors were encountered: