- changed milestone to 1.10.0
Add more control to add_bulk_permissions
https://bitbucket.org/wxmetvis/mss/src/develop/mslib/mscolab/add_bulk_permissions.py now allows a template similar to
p1
u1 v
u2 c
p2
u1 a
u2 v
This means, _insert u1 user as viewer, insert u2 as collaborator into project p1. And, insert u1 user as admin, insert u2 user as viewer into project p2. We have to refactor this to consider also a similar json input, since it’s more readable.
Comments (17)
-
-
Hi @Shivashis Padhi , I would like to work on this.
Could you provide an example of a sample json input for the same?
-
reporter
{ "add" : { "project1" : { "collaborator": ["user1", "user2", "user3"], "administrator": ["user5", "user7"], "viewer": ["user4", "user6"] }, "project2": { "viewer": ["user1", "user2"] } }, "modify": { "project3": { "user1": "viewer", "user3": "admin" } }, "delete": { "project4": ["user1", "user5"] } }
@Joern Ungermann looks good?
-
@Shivashis Padhi , couldn’t we club
add
andmodify
?
As it is the same user won’t be present in both of them simultaneously, right? -
reporter no. this is just for reference. same users won’t be there for ‘add’ ‘delete’ under same project.
-
Got it.
-
reporter Didn’t read your question properly back then, but to add to my answer, we can't club ‘add’ ‘modify’ , because in ‘add’ you
upsert
, while in ‘modify’ you check if it exists, if the username and permission doesn’t exist, the admin must know. -
Ahh, got it. On it!
-
Hi, I am not too depp into the MSCO permission, but the JSON looks reasonable. Would it be feasible to configure wildcards to, i.e., give all users “view” access with something such as
"viewer": [“*”]
?
-
reporter Understood, it can be explicitly checked for and if ‘*' is found, all the users in database be made 'viewers’ for that project. Can this be done @Akshansh Bhanjana ?
-
Looks good. I’ll try this, and let you know!
-
Perfect! We need to keep use-cases with less security-needs in mind; scientist often prefer easy-of-use. So enabling both secure and easy-to-use setups would be perfect!
-
@Akshansh Bhanjana are you working on this issue?
-
Hi Tanish
Nope, you can proceed with this issue :) -
@Reimar Bauer As we now have the admin dashboard we can maybe close this issue as this is not required anymore?
-
- changed status to wontfix
We do this by the admin dashboard
-
- changed milestone to 2.0.0
- Log in to comment