Description
🔖 Feature description
There should be a simpler and more convenient way to edit (change) a user's roles for a specific team for a specific membership.
We need to edit the membership team roles for users quite often using the console.
At the moment, there is no way (or workflow) in the console GUI to edit roles - you have to remove all roles and create new roles.
IMHO that is actually not the main problem - the biggest issue is that there is only one action to create team membership roles, and that is the + Create membership
button on https://{host}:{port}/console/project-{projectId}/auth/teams/team-{teamId}/members
.
That is fine, but the process of changing a user's roles becomes tedious, since the process involves the following actions:
- Find the user via search on
https://{host}:{port}/console/{projectId}/auth
- Navigate to the
Memberships
tab - Delete the user's existing team membership (along with its roles)
- Find the user again via search on
https://{host}:{port}/console/{projectId}/auth
- Select the user - copy the user's email address, since you will need it to create new permissions
- Navigate to
Auth/Teams
onhttps://{host}:{port}/console/{projectId}/auth/teams
- Select the relevant team
- Navigate to the
Members
tab - Hit the
+ Create Membership
button (Have the user's email address ready) - Create the new (actually the updated) membership roles
- 😩
This entire process also creates potential for certain problems, since the (long) admin task might be interrupted, in which case the user is left without permissions for the time being (after it has been deleted, but before it is created again, in order to actually change it).
Note: I do appreciate that the best approach would be to create some mechanism to automate the entire process, if it happens frequently enough, on the server-side or platform-side of the product or service being developed - but at the moment we only have the option to edit roles via the administration console.
🎤 Pitch
There are probably a few things that can be done to improve the situation.
A simple (but good) improvement would be to create another + Create Membership
action button on the https://{host}:{port}/console/project-{projectId}/auth/user-{userId}/memberships
page.
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct
Activity
eldadfux commentedon Jul 11, 2023
Sounds like a good suggestion. We'll add this to our design backlog.
Just to note, if you are using the API, you could still use this endpoint to update roles without deleting the membership:
https://appwrite.io/docs/client/teams?sdk=web-default#teamsUpdateMembershipRoles