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.