Description of problem:
A user with "Organization admin" role is not able to access "Content Hosts" page in the webui.
Version-Release number of selected component (if applicable):
Satellite v 6.3 Beta SNAP 26
Steps to Reproduce:
1. Create a new user with "Organization Admin" role
2. Try to access Content Hosts
The Org Admin user is able to list system profiles in the "All Hosts" page but not able to access list any system profiles on the "Content Hosts" page.
Org Admin user should have access to list and manage content hosts, he should be able to set/change/remove Environment/Content View/Subscriptions etc to the system profile.
Hello Ashish, is this a regression in snap 26 or was it observable with previous snaps too? Also note that you should not assign Organization Admin role directly, you should first create a clone of it and assign it some organization, then assign this clone to a user.
Not tested on earlier snaps, started testing yesterday after upgrading satellite from snap 25.
Aah not aware that we should be cloning it, any specific reason for this?
I created clone of default Org Admin role, assigned it to 2 orgs, still user with this cloned role can not list/access Content Host profiles.
Whereas a user with Manager role can list profiles on the Content Host page.
In beta, org admin is limited to single org. In GA, full support will be available (hopefully with few next snaps). Could you try it with single org. Also is a user being associated with single org? In my instance running last snap it seems to work.
Today I tested with Sat6.3 Public Beta,
- Only one default org is present on the satellite server.
- Tried with the cloned "Organization Admin" user after associating org with it.
- Also tried with default Org Admin role without cloning it.
In all scenarios, I see that user with Org Admin role can on access Content Hosts page.
Is this issue addressed in public beta?
Based on comment 4, does this mean that the issue is no longer being seen with the public beta?
If not, we do want to make sure this is resolved by GA.
Sorry for the confusion, the issue is still reproducible in Sat63 Public beta.
We need to fix it.
API call for the host list returns "Organization not found by id '1'".
Root cause seems to be that org admin role doesn't have view_organization role for its organization. This also prevents org admin from listing any other resource when specifying organization or organization-id in the api or hammer.
Created redmine issue http://projects.theforeman.org/issues/21998 from this bug
Upstream bug assigned to firstname.lastname@example.org
This has already been fixed upstream, updating upstream tracker.
Working on it as part of https://bugzilla.redhat.com/show_bug.cgi?id=1502725, this is a dup of it. I'm keeping it open for QA so they can also test this specific page under org admin.
version tested :
Satellite 6.3 snap 31
1. Cloned organization_admin role
2. Created a user with cloned role
3. Login with created user
4. Navigated to Hots-> Content Host page
Found Org_admin user is able to access content host also the API call returns list of content host.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> > For information on the advisory, and where to find the updated files, follow the link below.
> > If the solution does not work for you, open a new bug report.
> > https://access.redhat.com/errata/RHSA-2018:0336