Bug 1545716
| Summary: | empty groups in domain users element | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Lucie Leistnerova <lleistne> |
| Component: | RestAPI | Assignee: | Ondra Machacek <omachace> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Petr Matyáš <pmatyas> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.2.1 | CC: | bugs, lsvaty, lveyde, mperina |
| Target Milestone: | ovirt-4.2.2 | Flags: | rule-engine:
ovirt-4.2+
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ovirt-engine-4.2.2.4 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-03-29 11:11:42 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Lucie Leistnerova
2018-02-15 14:17:19 UTC
Using ovirt-engine-4.2.2.4-0.1.el7.noarch I still get empty groups element even though user is in a group. I did steps from description, but with: curl -v -u "admin@internal:passwd" -H "Content-type: application/xml" --insecure -X GET https://engine_url/ovirt-engine/api/domains/696E7465726E616C2D617574687A/users I still get: <users> <user href="/ovirt-engine/api/domains/696E7465726E616C2D617574687A/users/63643062333561622D656331302D343562642D623136312D336234636162353734613139" id="63643062333561622D656331302D343562642D623136312D336234636162353734613139"> <name></name> <department></department> <email></email> <last_name></last_name> <namespace>*</namespace> <principal>test</principal> <user_name>test@internal-authz</user_name> <domain href="/ovirt-engine/api/domains/696E7465726E616C2D617574687A" id="696E7465726E616C2D617574687A"> <name>internal-authz</name> </domain> <groups/> </user> <user href="/ovirt-engine/api/domains/696E7465726E616C2D617574687A/users/31333738303532302D653737382D346264382D613465312D356461653635623331363663" id="31333738303532302D653737382D346264382D613465312D356461653635623331363663"> <name>admin</name> <department></department> <email></email> <last_name></last_name> <namespace>*</namespace> <principal>admin</principal> <user_name>admin@internal-authz</user_name> <domain href="/ovirt-engine/api/domains/696E7465726E616C2D617574687A" id="696E7465726E616C2D617574687A"> <name>internal-authz</name> </domain> <groups/> </user> </users> It was decided to add link to external groups to the /api/users endpoint, so now user can query groups of the users in the system. We didn't decide to fill <groups> element in /api/domain/123/users endpoint as it would be too time consuming. In that case let's verify this one. I used ovirt-engine-4.2.2.4-0.1.el7.noarch and can list groups correctly from api/users/123/groups, although you need to add the user to RHV to view his groups. This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018. Since the problem described in this bug report should be resolved in oVirt 4.2.2 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |