While trying to set the password for admin user using foreman-rake command getting error: Username already exists.

Solution Verified - Updated -

Issue

  • Trying to reset the password using foreman-rake command is failing with error Username already exists.

    # foreman-rake permissions:reset password=<New_Password>
    Username already exists
    
  • While updating the password using hammer cli getting the following error:

    # hammer user update --id X --password <New_Password>
    [Foreman] Username: admin
    [Foreman] Password for admin:
    Could not update the user:
      Resource user not found by id 'admin'
    

Environment

  • Red Hat Satellite 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content