Admins should be able to edit a user's Organization role
Problem
Admins can assign an Organization role to new users as part of the new user creation form. They should also be able to edit the role of an existing user.
Proposal
-
Ensure that for Cells 1.0 the Organization selection field is read only when there is only one Organization in the instance (self-managed use case). -
Ensure that the user edit form in the Admin Area displays the Organization role. -
When user is the last owner of an organization an error message is shown at the top of the page if you try to change them to a Userrole.
For cells 1.0 where the instance is limited to a single organization
| User edit form | Dropdowns |
|---|---|
![]() |
![]() |
For cells 1.0 where the instance has multiple organizations
Note: For edit, this is the same as above since users can not switch organization in Cells 1.0
| User edit form | Dropdowns |
|---|---|
![]() |
![]() |
For cells 1.5+
| User edit form | Dropdowns | States |
|---|---|---|
![]() |
![]() |
![]() |
Implementation guide
- Render
app/assets/javascripts/admin/users/components/organization_role_field.vueinapp/assets/javascripts/pages/admin/users/edit/index.js - Mount that component in app/views/admin/users/_form.html.haml
- Pass initial
organization_access_leveltoapp/assets/javascripts/admin/users/components/organization_role_field.vuevia data attributes
Edited by Peter Hegman






