Usergroup Inherited Roles are not shown to Users in "My Account/Roles" tab
|Assigned To:||Dominik Hlavac Duran|
|Target version:||Team Marek Iteration 6|
|Found in release:||1.11.2||Pull request:||https://github.com/theforeman/foreman/pull/3709|
|Velocity based estimate||-|
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: email@example.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