Password Group (Swift):Get Groups For User

Search (SHIFT+S)




Get Groups For User

GET /object/user-password/{uid}

Gets all user groups for a specified user identifier.

uidUser identifier required to get all user groups

Required Roles

Requires one of the following roles:

  • NAMESPACE_ADMIN

  • SYSTEM_ADMIN

  • SYSTEM_MONITOR


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
</user_groups>

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>
Notes: