Content
View differences
Updated by Christophe Bliard over 4 years ago
**As** an administrator
**I want to** assign global roles to a group
**so that** I don't have to assign global roles to individual users and can manage superuser groups.
**Acceptance criteria**
* [x] Analogous to how global roles are assigned to individual users (`users/:id/edit/global_roles`) global roles can be assigned to groups. The UI existing for users can be reused for groups.
* [x] If a user global role is inherited from a group, the user should not be able to remove it.
* [x] Upon adding a global role to a group, all members receive that global role.
* [x] Upon adding a user to a group, global roles assigned to the group are assigned to the new member user.
* [x] Upon removing a user from a group, global roles assigned to the group are removed from the member user, except for when the user has had the global role independent of the group or is part of a different group that still has the global role. The same applies to when the group is deleted. The same applies to all users that are part of the group when the global role is removed from the group.
* [ ] `POST /api/v3/memberships` and `PATCH /api/v3/memberships` accept the combination of groups and global roles when no project is set (global).
* [ ] Make sure mailers for notifications work correctly
This work package is based on requirements work out in a private ticket (##35517).
**I want to** assign global roles to a group
**so that** I don't have to assign global roles to individual users and can manage superuser groups.
**Acceptance criteria**
* [x] Analogous to how global roles are assigned to individual users (`users/:id/edit/global_roles`) global roles can be assigned to groups. The UI existing for users can be reused for groups.
* [x] If a user global role is inherited from a group, the user should not be able to remove it.
* [x] Upon adding a global role to a group, all members receive that global role.
* [x] Upon adding a user to a group, global roles assigned to the group are assigned to the new member user.
* [x] Upon removing a user from a group, global roles assigned to the group are removed from the member user, except for when the user has had the global role independent of the group or is part of a different group that still has the global role. The same applies to when the group is deleted. The same applies to all users that are part of the group when the global role is removed from the group.
* [ ] `POST /api/v3/memberships` and `PATCH /api/v3/memberships` accept the combination of groups and global roles when no project is set (global).
* [ ] Make sure mailers for notifications work correctly
This work package is based on requirements work out in a private ticket (##35517).