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 1518654

Summary: We should not return default role in user API
Product: Red Hat Satellite Reporter: Marek Hulan <mhulan>
Component: Users & RolesAssignee: Marek Hulan <mhulan>
Status: CLOSED ERRATA QA Contact: Sanket Jagtap <sjagtap>
Severity: medium Docs Contact:
Priority: unspecified    
Version: UnspecifiedCC: bbuckingham, dhlavacd, inecas, mhulan, pcreech, sjagtap
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:46:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marek Hulan 2017-11-29 12:15:02 UTC

Comment 1 Marek Hulan 2017-11-29 12:15:08 UTC
Created from redmine issue http://projects.theforeman.org/issues/21805

Comment 2 Marek Hulan 2017-11-29 12:15:12 UTC
Upstream bug assigned to mhulan

Comment 5 Satellite Program 2017-11-29 13:12:39 UTC
Upstream bug assigned to mhulan

Comment 6 Satellite Program 2017-11-29 13:12:42 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21805 has been resolved.

Comment 7 Brad Buckingham 2017-12-07 20:35:57 UTC
*** Bug 1518634 has been marked as a duplicate of this bug. ***

Comment 8 Brad Buckingham 2017-12-07 20:36:26 UTC
*** Bug 1518633 has been marked as a duplicate of this bug. ***

Comment 9 Brad Buckingham 2017-12-07 20:36:46 UTC
*** Bug 1518653 has been marked as a duplicate of this bug. ***

Comment 12 Sanket Jagtap 2017-12-11 16:35:19 UTC
Build: Satellite 6.3.0 snap28

[root@qe-capsule-feature-rhel6 ~]# hammer user info --id 4
Id:                    4
Login:                 QHGvzg
Name:                  U8D5zhdpy8 aWPKjX4Xdu
Email:                 ÑùøÚõÇêþíÞ
Admin:                 no
Last login:            
Authorized by:         Internal
Effective admin:       no
Locale:                default
Timezone:              default
Description:           
Default organization:  
Default location:      
Roles:                 

User groups:           

Inherited User groups: 

Created at:            2017/12/07 10:25:01
Updated at:            2017/12/07 10:25:01

API:
curl -u admin:changeme -X GET https://sat-host/api/users/4
{"firstname":"U8D5zhdpy8","lastname":"aWPKjX4Xdu","mail":"ÑùøÚõÇêþíÞ","admin":false,"auth_source_id":1,"auth_source_name":"Internal","timezone":null,"locale":null,"last_login_on":null,"created_at":"2017-12-07 10:25:01 UTC","updated_at":"2017-12-07 10:25:01 UTC","id":4,"login":"QHGvzg","description":null,"ssh_keys":[],"default_location":null,"locations":[],"default_organization":null,"organizations":[],"effective_admin":false,"cached_usergroups":[],"auth_source_internal":{"id":1,"type":"AuthSourceInternal","name":"Internal"},"mail_notifications":[],"roles":[],"usergroups":[]}

Comment 13 Bryan Kearney 2018-02-21 16:42:28 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336

Comment 14 Bryan Kearney 2018-02-21 16:46:33 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336