Bug 1083553 - Can't list roles assigned to user
Summary: Can't list roles assigned to user
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Tomas Strachota
QA Contact: Jitendra Yejare
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-02 12:57 UTC by Lukáš Hellebrandt
Modified: 2019-02-25 21:56 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-20 12:21:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lukáš Hellebrandt 2014-04-02 12:57:08 UTC
Description of problem:
Can't list user roles using API


How reproducible:
Always

Steps to Reproduce:
1. Using WebUI, assign some roles to the user (in Administer->Users-><user>->Roles)
2. curl -H "Content-Type:application/json" -H "Accept:application/json,version=2" -k -u <user>:<password> -X GET localhost/katello/api/users/testlogin/roles

Actual results:
[]

Expected results:
List of the assigned roles

Comment 1 RHEL Program Management 2014-04-02 13:26:03 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Dominic Cleal 2014-05-20 12:21:34 UTC
GET /api/v2/users/USERNAME provides this information in the roles node.


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