Project

General

Profile

Actions

Bug #5673

closed

As a user wishing to manage roles and users, I cannot easily remove a role.

Added by Eric Helms over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Users, Roles and Permissions
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

This issues manifests itself in two forms:

1. If I have Role A, being used by User B and I attempt to delete Role A, I am presented with an error message "Role is still in use".
2. If I have Role A being used by 25 users, and I wish to delete Role A, I must find every user using Role A, remove the Role from each individual user and then delete the role.

Actions #1

Updated by Dominic Cleal over 10 years ago

  • Category set to Users, Roles and Permissions
Actions #2

Updated by Marek Hulán over 10 years ago

Just for the record, users could be search by role using filter "role = $name" but that is also inconvenient

Actions #3

Updated by Marek Hulán over 8 years ago

  • Target version set to 115
Actions #4

Updated by Marek Hulán over 8 years ago

  • Target version changed from 115 to 1.5.3
Actions #5

Updated by Marek Hulán about 8 years ago

  • Target version changed from 1.5.3 to 1.5.0
Actions #6

Updated by Marek Hulán about 8 years ago

  • Assignee set to Shlomi Zadok
Actions #7

Updated by Daniel Lobato Garcia about 8 years ago

We have had this problem with Organizations/Locations too, where removing them is a real PITA (find all objects associated), Environments, and proxies... If we can have a 'generic' approach to this operation that we can apply with any object that deleting it leaves orphans that have to be fixed, that'd be great

Actions #8

Updated by Shlomi Zadok about 8 years ago

@Daniel, I think that this use-case is a whole lot different than with Organizations / Locations.
With Role, it is a simple delete, which removes the user_roles association, and does not leave an orphan

Actions #9

Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3922 added
Actions #10

Updated by Shlomi Zadok about 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #11

Updated by Dominic Cleal about 8 years ago

  • Translation missing: en.field_release set to 189
Actions

Also available in: Atom PDF