Bug #38448
closedsubscription-manager environments --set raises Forbidden error until the user is Admin
Description
Description of problem:
Trying to change Host's LCE/CV environment, `subscription-manager environments --set` command is used. The command requires authorization (until SAT-29869 is implemented).
However, the authorized user must be Admin. No non-admin user can authorize the request.
How reproducible:
100%
Is this issue a regression from an earlier version:
probably not
Steps to Reproduce:
1. Create a Satellite user and assign to it all roles. Dont set it as an Administrator
2. Have a Content Host registered to the Satellite.
3. Change the Host's environment from command line (even to the current env):
```
subscription-manager environments --set LCE/my_cv --username new_user --password its_password
```
4. Try the same but for admin user.
Actual behavior:
3. fails, until one sets the user as Admin.
More details in Jira card.
Updated by The Foreman Bot 3 days ago
- Status changed from New to Ready For Testing
- Assignee set to Lucy Fu
- Pull request https://github.com/Katello/katello/pull/11401 added
Updated by Partha Aji 3 days ago
- Target version changed from Katello Next to Katello 4.17.0
- Triaged changed from No to Yes
Updated by Lucy Fu 2 days ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|72f7a98f7cfaebba46c4dbf6838a399b3c9d131f.