Summary:
List the groups a specified user is a member of.
URL:
http(s)://{server hostname}/api/users/{userID}/groups
Methods summary
- GET Method - lists the groups a specified user is a member of.
GET Method detail
Returns a list of the groups that the user is a member of.
Response:
Name | Description |
---|---|
Items |
the user groups that the user is a member of. |
Count |
number of user groups that the user is a member of. |
Examples:
INPUT
curl -u admin:admin https://localhost/api/users/3/groups?media=json
OUTPUT
{
"items" : ["All Users", "Administrators"],
"count" : 2
}
INPUT
curl -u admin:admin https://localhost/users/3/groups?media=xml
OUTPUT
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><items count="2" xmlns:ns5="https://www.entuity.com/webrpc" xmlns:ns2="https://www.entuity.com/schemas/webUI" xmlns:ns4="https://www.entuity.com/schemas/eventengine" xmlns:ns3="https://www.entuity.com/schemas/flow">
<item xsi:type="xs:string" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">All Users</item>>
<item xsi:type="xs:string" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">Administrators</item>>
</items>
Comments
0 comments
Please sign in to leave a comment.