Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1480561

Summary: Organization Admin roles doesnt have permissions for Access Insights
Product: Red Hat Satellite Reporter: Jitendra Yejare <jyejare>
Component: RH Cloud - InsightsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Jitendra Yejare <jyejare>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, dhlavacd, lphiri, mhulan
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-foreman-redhat_access-2.0.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-13 13:45:06 UTC 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:
Bug Depends On:    
Bug Blocks: 1373844    
Attachments:
Description Flags
Screenshot Attached none

Description Jitendra Yejare 2017-08-11 11:52:15 UTC
Description of problem:
The Organization admin role doesn't have permissions for Access Insights.
When I login with Organization Admin in satellite it doesn't display menu for Access Insights.

Version-Release number of selected component (if applicable):
Satellite 6.3 snap 11

How reproducible:
Always

Steps to Reproduce:
1. Create org admin role by cloning Organization Admin default role
2. Create new user and assign above cloned role
3. Login with new user in satellite

Actual results:
For org admin user, The Access Insights menu isn't displayed

Expected results:
Org Admin should have permissions to Access Insights

Additional info:

Comment 2 Jitendra Yejare 2017-08-11 11:56:50 UTC
Created attachment 1312104 [details]
Screenshot Attached

Comment 3 Marek Hulan 2017-08-11 13:12:15 UTC
The gem needs to use the macro "add_all_permissions_to_default_roles" to extend permissions. Please ping me if you need more info.

Comment 4 Marek Hulan 2017-08-11 13:28:02 UTC
Sent a fix to https://github.com/redhataccess/foreman-plugin/pull/11

Comment 9 Jitendra Yejare 2017-08-28 13:06:23 UTC
Verified!

Satellite 6.3.0 snap 13

Steps:
1. Created org admin role by cloning Organization Admin default role
2. Created new user and assigned above cloned role
3. Login with new user in satellite

Actual results:
For org admin user, The Access Insights, Red Hat Acess menu is displayed.


Note:

I see some weird behavior while logged in as org Admin, that the Red hat access login dialog keep on refreshes and throws warning message of already logged in.
Bug is logged here : https://bugzilla.redhat.com/show_bug.cgi?id=1485929 
But the issue is out of scope for this bug. So verifying this bug.