Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-27133

Inconsistency Between Hammer CLI Output and Satellite GUI for Users with Admin Rights Inherited from User Group

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 6.13.0, 6.14.0, 6.15.0
    • Hammer
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • Moderate
    • To Do
    • None

      Description of problem:

      When a user inherits admin rights from a user group, the Satellite GUI correctly indicates that the user has admin rights. Additionally, impersonating the user confirms that they possess admin privileges. However, the Hammer CLI output incorrectly shows that the user does not have admin rights.

       

      How reproducible:

      It is 100% reproducible

      Is this issue a regression from an earlier version:

       

      Steps to Reproduce:

      1.Create a user group with administrator access in satellite GUI

       # Login to satellite GUI --> Administrator --> User group --> create user group --> provide name and other details --> ROLES --> Administrator --> submit  

      2. Now, Create a user from the satellite GUI 

      1. Login to satellite GUI --> Administrator --> User --> create user

      3. Add the user to the usergroup.

      Now,  on satellite GUI will show the added user as admin user

      4. [On satellite CLi]

      1. hammer user list

       

      Actual behavior:

      ~]# hammer user list
      --|---------|-----------|---------------------------|-----|--------|-------------------|-------------
      ID | LOGIN     | NAME        | EMAIL                       | ADMIN | DISABLED | LAST LOGIN          | AUTHORIZED BY
      --|---------|-----------|---------------------------|-----|--------|-------------------|-------------
      8  | testuser1 |             | abc@gmail.com               | no    | no       |                     | Internal     

      Expected behavior:
      **

      It should be Admin --> Yes for the user from the output of the hammer command

      Business Impact / Additional info:

       

              Unassigned Unassigned
              rhn-support-shmohamm Shaikh Mohammed Afrid
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: