Bug #15232

Usergroup Inherited Roles are not shown to Users in "My Account/Roles" tab

Added by Simon Mügge 11 months ago. Updated 5 months ago.

Status:Closed
Priority:Normal
Assigned To:Dominik Hlavac Duran
Category:Authorization
Target version:Team Marek Iteration 6
Difficulty: Bugzilla link:
Found in release:1.11.2 Pull request:https://github.com/theforeman/foreman/pull/3709
Story points-
Velocity based estimate-
Release1.14.0Release relationshipAuto

Description

When only assigning a Role to a User via inheritance from a Usergroup, no Roles are shown in that users "My Account/Roles" tab.

User in this case has "Anonymous" (which is seemingly never shown any way) and "Viewer" inherited from a (linked LDAP-)Group.

Hammer also only shows "Anonymous" when querying the user in question, not the inherited role "Viewer" from the listed Usergroup.

$ hammer user info --login foobar
Id:                   57
Login:                foobar
Name:                 Foo Bar
Email:                foo@bar.com
Admin:                no
Authorized by:        
Locale:               default
Timezone:             
Last login:           2016/05/30 11:58:35
Default organization: 
Default location:     
Roles:                
    Anonymous
User groups:          
    Some Group
Created at:           2016/05/23 14:49:28
Updated at:           2016/05/30 12:52:51 
 $hammer user-group info --name "Some Group" 
Id:                   4
Name:                 Some Group
Users:                
    foobar
User groups:          

External user groups: 
    LDAP - Some Group
Roles:                
    Viewer
Created at:           2016/05/20 14:09:46
Updated at:           2016/05/20 14:09:46 

Related issues

Related to Foreman - Bug #15231: Usergroup Inherited Roles are not shown to Users in "My A... Rejected 05/30/2016
Related to Hammer CLI - Bug #16016: Usergroup Inherited Roles are not shown in hammer Closed 08/09/2016

Associated revisions

Revision 2a3ede3c
Added by Dominik Hlavac Duran 5 months ago

Fixes #15232 - Showing inherited roles from User groups to user

History

#1 Updated by Marek Hulán 11 months ago

  • Related to Bug #15231: Usergroup Inherited Roles are not shown to Users in "My Account/Roles" tab added

#2 Updated by Dominic Cleal 11 months ago

  • Category set to Authorization

#3 Updated by Marek Hulán 9 months ago

  • Target version set to Team Marek backlog

#4 Updated by Dominik Hlavac Duran 9 months ago

  • Status changed from New to Assigned
  • Assigned To set to Dominik Hlavac Duran

#5 Updated by Marek Hulán 9 months ago

  • Target version changed from Team Marek backlog to Team Marek Iteration 1

#6 Updated by The Foreman Bot 9 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3709 added

#7 Updated by Dominik Hlavac Duran 9 months ago

  • Related to Bug #16016: Usergroup Inherited Roles are not shown in hammer added

#8 Updated by Marek Hulán 8 months ago

  • Target version changed from Team Marek Iteration 1 to Team Marek Iteration 2

#9 Updated by Marek Hulán 8 months ago

  • Target version changed from Team Marek Iteration 2 to Team Marek Iteration 3

#10 Updated by Marek Hulán 7 months ago

  • Target version changed from Team Marek Iteration 3 to Team Marek Iteration 4

#11 Updated by Marek Hulán 6 months ago

  • Target version changed from Team Marek Iteration 4 to Team Marek Iteration 5

#12 Updated by Marek Hulán 6 months ago

  • Target version changed from Team Marek Iteration 5 to Team Marek Iteration 6

#13 Updated by Dominik Hlavac Duran 5 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#14 Updated by Dominic Cleal 5 months ago

  • Release set to 1.14.0

Also available in: Atom PDF