Modified since last release
Get Groups For User
GET /object/user-password/{uid}
Gets all user groups for a specified user identifier.
uid | User identifier required to get all user groups |
Required Roles
Requires one of the following roles:
NAMESPACE_ADMIN
SYSTEM_ADMIN
Response Body
List of user groups for specified user
Field |
Description |
Type |
Notes |
user_groups |
|
|
|
swift_password_configured |
|
Boolean |
|
groups_list |
List of ADMIN group names. |
String |
0-* Elements
|
Examples
Request
GET https://192.168.0.0:4443/object/user-password/wuser1@sanity.local HTTP/1.1
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<user_groups>
<groups_list>admin</groups_list>
</user_groups>
Request
GET https://192.168.0.0:4443/object/user-password/wuser1@sanity.local.json HTTP/1.1
Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"groups_list": [
"admin"
]
}
Request
curl -H $token -H "Content-Type: application/xml" -X GET https://$nodeIp:4443/object/user-password/wuser1@sanity.local
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<user_groups>
<groups_list>admin</groups_list>
</user_groups>