Bug 1486234 - User unable to access SUI if first AD/LDAP group/role does not have feature enabled
Summary: User unable to access SUI if first AD/LDAP group/role does not have feature e...
Keywords:
Status: CLOSED DUPLICATE of bug 1437682
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - Service
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: cfme-future
Assignee: Chris Kacerguis
QA Contact: Matt Pusateri
URL:
Whiteboard: auth:miqldap:ad:ssui
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-29 09:26 UTC by ncatling
Modified: 2017-10-24 08:05 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-22 13:15:14 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot (166.54 KB, image/png)
2017-08-30 12:48 UTC, Loic Avenel
no flags Details
screenshot (166.54 KB, image/png)
2017-08-30 12:49 UTC, Loic Avenel
no flags Details

Description ncatling 2017-08-29 09:26:51 UTC
Description of problem:
User unable to access SUI if first AD/LDAP group/role does not have feature enabled

Version-Release number of selected component (if applicable):
5.8.1.5

How reproducible:


Steps to Reproduce:
1. 
2.
3.

Actual results:
User denied access to SUI

Expected results:


Additional info:

Comment 2 Allen W 2017-08-29 13:14:10 UTC
If the user's group's role does not have any of the applicable product features assigned the user is not permitted to log into the SUI, this is by design. Could you provide more information about the product features?  Or screen shots of the message you see when trying to log in?

Comment 3 ncatling 2017-08-29 13:19:43 UTC
The user is in two groups, only one of which has the service catalogue features enabled in the associated role. It seems that CF is selecting the group which doesn't have access, rather than checking all group/role features. Unless ALL the user's groups have the necessary service catalogue features enabled, the user cannot log in.

Comment 4 Allen W 2017-08-29 13:24:49 UTC
The roles and product features of the current group are the only ones that will be observed. This discussion cropped up a few times before, ultimately anding all users group roles was decided undesired, so not a bug here operating as designed.

Comment 5 Chris Kacerguis 2017-08-29 14:49:05 UTC
Loic,

As Allen stated this has popped up a few times.  From a "code" perspective it is working as expected, so this is more of a usability thing.  Happy to change it however UXD / PM would like.

Sending this to UXD for review / guidance.

Comment 6 ncatling 2017-08-29 15:20:11 UTC
@Allen, how does CF determine the current group? Alphabetically or LDAP search priority? As a workaround, we have tried LDAP group priority but this failed. Some way to set this would be helpful.

Comment 7 Loic Avenel 2017-08-30 12:48:20 UTC
Groups oder is controlled in Ops UI by using "Edit Sequence of User Groups". 
@Nick, I will recommend to look into this option and put first your group with the Self Service role enabled. This I think a good workaround for now.

@Allen, generally, I think we should authorise user to login anyway and let him selecting another group in the drop down.. (never check but I suspect you can switch between groups).  We have in the plan a proper "RBAC" support, which means if nothing is activated for the user in the first group when he is logging in then show nothing in the main body with a message: "your current group does not allow you to access this feature, please change group or contact your administrator"

Comment 8 Loic Avenel 2017-08-30 12:48:54 UTC
Created attachment 1320069 [details]
screenshot

Comment 9 Loic Avenel 2017-08-30 12:49:28 UTC
Created attachment 1320070 [details]
screenshot

Comment 10 Matt Pusateri 2017-08-30 14:16:50 UTC
This is a duplicate of this: https://bugzilla.redhat.com/show_bug.cgi?id=1437682

Comment 11 Loic Avenel 2017-08-30 15:54:10 UTC
Brainstorming about this issue, if user logged with a group where he has access to Self Service and then change to a group with no access, what will happen? he will be logged out?

We should think about an approach like many UI, they will tell you you are not authorized to view and proposed to user another user.. or Group in our case..

Comment 12 Chris Kacerguis 2017-09-07 17:06:01 UTC
So, I really think that this more of a UX issue vs. a technical one.  We've had many conversations about this, and it's working as discussed.  So, if we need to change this (which I think we should) this is should be discussed with UXD.

Comment 13 Matt Pusateri 2017-09-07 17:46:30 UTC
I think what you are hitting is this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1437682  Basically SSUI only looks at current group, not group membership.

Comment 14 Chris Kacerguis 2017-09-22 13:15:14 UTC

*** This bug has been marked as a duplicate of bug 1437682 ***


Note You need to log in before you can comment on or make changes to this bug.