Listing User Groups Associated with a User

Last updated: 2019-04-17 16:46:19

API Description

This API (ListGroupsForUser) is used to get the list of the user groups associated with a user.

Request domain name:

Input Parameters

The following request parameter list only provides the API request parameters. Other parameters can be found in Common Request Parameters.

Parameter Name Type Required Description
page int No Page number. From 1 to 200. The default is 1.
rp int No Number of items on each page. Greater than 0 and less than or equal to 200. The default is 20.
uid int Yes User id

Output Parameters

Parameter Name Type Description
totalNum int The total number of user groups a user joins
groupInfo array Array of user groups, where each member has the following fields: groupId (user group ID), groupName (user group name), and remark (user group description).




    "code": 0,
    "message": "",
    "codeDesc": "Success",
    "data": {
        "groupInfo": [
                "groupId": 28791,
                "groupName": "testgrname",
                "remark": "tee123"
        "totalNum": "1"

Error Codes

For more information, see Error Codes.