getUserGroups
- Home
- Users & Groups
- SvcUsers
- getUserGroups
getUserGroups
Fetches all the groups to which a user belongs.
Parameters
Name | Description |
userID required | User id of the user who is being targeted. |
page optional | The page of results to display. |
perPage optional | The number of results to display per page. |
tierID optional | Tier ID. |
status optional | The status of the user. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/svcUsers?action=getUserGroups&page=1&perPage=2&userID=229928503&nodeID=188234&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
{ "service":"svcUsers", "action":"getUserGroups", "item":[ { "group_id":"1000812", "display_name":"testingGroup", "group_name":"testingGroup", "desc_full":"test", "desc_small":"test", "date_added":"1548870850", "domain":"onesitedemo.com", "subdir":"testinggroup", "group_url":"http://www.onesitedemo.com/testinggroup", "join_method":"open", "group_access":"semi_private", "member_content_association":"screen", "avatar":"http://services.onesite.com/resources/images/group-default-avatar.jpg?ver=13.06.21", "photo":"http://services.onesite.com/resources/images/unisex_v4.gif?ver=13.06.21", "num_members":"1", "owner_id":"229928503", "blog_id":"234957376", "date_updated":"2019-01-30 11:54:10", "category_id":"0", "user_status":"owner" } ], "code":1, "message":"Success", "total":"1", "page":1, "per_page":2 } |
Service Information
Service | svcUsers |
Method | getUserGroups |
Type | REST |
Response Types | JSON, XML |