Allow force deletion of roles in-spite of user-assignment

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.

Hi @Naveen welcome to the forum. You may be better adding this to the ideas section of the forum, where you and others can upvote the idea. That section is reviewed and ideas there can feed into future product development.

1 Like

Thank you @Ollie_Phillips I have changed it to ideas section.