API – Get Group Memberships of a User

action – usergroups

To get a list of groups to which a User belongs, pass action usergroups and the user’s record ID in recordid. The Groups, if any, will be output as a standard record list i.e. as an array in records.

Sample Request

{ "account": *** your account id ***, "apikey": "*** your api key ***", "action": "usergroups", "recordid": 12345 }

Sample Response

{ "success": true, "recordtype": "group", "count": 1, "total": 1, "records": [ { "recordurl": "group/123", "recordid": 123, "recordtype": "group", "name": "Sales Team" } ] }