Closed
Description
In our new organization view, we list all org members. We should give Coder operators the ability to manage member roles from within this view so they can permission members with roles they've created (and remove permissions when necessary).
Note that ideally, we would like to de-duplicate user views rather than having multiple. For example, when this ticket is completed we will have user views for
- all users in a deployment
- all users in an org
- all users in a group
We will revisit design and explore consolidating views after orgs is in experimental.
Requirements
- Give users the ability to add custom roles for org members in to
/organizations/[orgSlug]/members
which is already scaffolded and indicate success or failure with a toast - Give users the ability to remove custom roles for org members in to
/organizations/[orgSlug]/members
which is already scaffolded and indicate success or failure with a toast - For prior art, look at our existing user table functionality
- Ensure only org admins, site wide user admins, and owners can add and remove roles for org members
- Add Jest tests for basic functionality
- Add storybooks
- Create a separate issue to encapsulate the work required to consolidate our three user views so that we can get started on this consideration after orgs is available as an experiment (and make sure to add this to the milestone!)