Listing User Groups Associated with a User

Last updated: 2020-06-05 19:32:14


    This is a legacy API which has been hidden and will no longer be updated. We recommend using the new CAM API 3.0 which is standardized and faster.

    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.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback