Bug 2222576

Summary: Non-admin users are not able to register host to the Non-default location defined in global registration template on Red Hat Satellite 6.
Product: Red Hat Satellite Reporter: Akash Badak <abadak>
Component: RegistrationAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.13.3CC: ahumbe, akapse, lstejska, mhulan, nalfassi, oezr, skoul
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Akash Badak 2023-07-13 07:18:31 UTC
Description of the problem:

Non-admin users are not able to register the host to the desired location, the host is getting registered to the default location.
If Admin Access is given to a Non-Admin user then the host gets registered to the desired /defined location without any error.

How reproducible:
100 %

Steps to Reproduce:
    1. Create a user "NA-USER" on Satellite GUI but don't mark it as Admin.
    2. Assign all the Roles to the user "NA-USER" but don't mark it as "Admin".
    3. Login using “NA-USER” generate a global registration script and register the host.

Actual results: 
   The host is getting registered to the default location and not to the Non-default location defined in the global registration template.

Expected results:
     The host should get registered without giving an error to the defined location.

Additional info:
If I assign the “Administrator” role along with the “register host”  role it's working

Comment 1 Leos Stejskal 2023-07-13 10:46:50 UTC
>    The host is getting registered to the default location and not to the Non-default location defined in the global registration template.

Hi,
can you please share:

1) generated registration command
2) Output of the command when you call it without the "| bash" at the end?