How Can I Create an Admin User From the Command Line in Ansible Automation Platform ?

Solution Verified - Updated -

Environment

  • Red Hat® Ansible Automation Platform

Issue

  • My current admin user is damaged and I can't access to AAP GUI as admin

Resolution

  • As root user, create a new admin user using awx-manage command:

    awx-manage createsuperuser --username admin2
    

Root Cause

  • The default admin permissions could be overwritten accidentally.

Diagnostic Steps

  • Check the admin permissions querying the endpoint below. (Note that id 1 is for the default admin user, but this ID can vary depending on your configuration)

    https://TOWER_DOMAIN/api/v2/users/1/
    

    It should return:

    is_superuser: true
    
  • If this parameter is False, this user has no longer admin permissions and you should create a new admin user following the instruction explained.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments