-
Notifications
You must be signed in to change notification settings - Fork 81
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
Permissions for Organizations #45
Comments
@ian-ross I started putting together some policies for organisations, they are pretty simple, let me know if I'm missing something. Organisation actions
PoliciesDefault for all users{
"clause": [
{
"effect": "allow",
"object": ["organization/*"],
"action": ["org.list", "org.view"]
}
]
} Sysamdin{
"clause": [
{
"effect": "allow",
"object": ["organization/*"],
"action": ["org.*"]
}
]
} Organisation adminDepending on how we define organisation admin roles. When an organisation admin is a top level role, i.e. they can manage all organisations is the platform. {
"clause": [
{
"effect": "allow",
"object": ["organization/*"],
"action": ["org.*"]
}
]
} When they can manage specific organisations only {
"clause": {
"effect": "allow",
"object": ["organization/habitat-for-humanity"],
"action": ["org.*"]
}
} |
These are almost right, I think, but it's not quite possible to write correct policies yet because I need to do this "collective actions" thing I mentioned to you. The actions certainly look about right, though. Stick what you have so far in a |
What would the workflow look like if a user signed up for Cadasta and wanted to create their own organization? I suppose this is mostly a workflow/interface thing. Just want to make sure it could work at this level too though. |
I presume somebody (a superuser) needs to authorise them to do so, unless we want any user to be able to create organisations. There are two options:
|
I like both of those options, and I think we should eventually support them both. I especially like the idea of generalising option 1 so that any time a user gets a "permission denied" message, they're given the option of requesting the permission (I could probably come up with some algorithm to select somehow the "nearest" administrative user who's able to give them the permission -- might be a project admin, might be an organisation admin, might be a superuser). I think that could be quite neat. A related but different point is that the initial permissions policies for organisations will be derived from some platform-wide defaults, and initial permissions policies for projects will be derived from the "project template" for the organisation, which will also initially be copied from a platform-wide default. After that, organisation and project policies can be edited as needed. |
Roles and Permissions:
The text was updated successfully, but these errors were encountered: