Project

General

Profile

Bug #3829

Unable to delete a user when that user have created hostgroups, reports etc

Added by Petter Hassberg about 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

A user which have created systems and hosgroups in the foreman cannot be deleted without changing owners etc for these hostgroups first.

For example:
  • A user have been created in the foreman UI.
  • The user have created several hostgroups and systems.
  • The user have quit and should no longer have access
  • Upon deleting user, the following error message gets trhown in the UI:
    User Name is used by HOSTGROUP/dev
    User Name is used by HOSTGROUP/dev/RHEL
    User Name is used by HOSTGROUP/dev/RHEL/foreman
    User Name is used by HOSTGROUP/dev/RHEL/smart-proxy
    
  • and the user does not get deleted.

The user should be deletable and what ever resources associated should be left intact.

History

#1 Updated by Dominic Cleal over 5 years ago

  • Status changed from New to Resolved

Reported resolved via IRC, thanks.

Also available in: Atom PDF