A Morpheus user can create a role and assign it to the users. But when the same role is tried to be deleted, deletion fails with the reason that the role is assigned to a user.
Can we have a “force delete” option, When a user tries to delete a role. On clicking on Delete Role, a disclaimer saying that, with forceful role deletion, all it’s assignment will also be removed.
Introduce a “force” param in the delete role api which will force delete the role and it’s assignments when value is true.
This way a user is allowed to create and delete a role freely without having to remove the role assignment from each user before deletion.