Querying List of Users Associated with a User Group

Last updated: 2019-04-17 16:44:01

API Description

This API (ListUsersForGroup) is used to query the list of users associated with a user group.

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.
groupId int Yes User group ID

Output Parameters

Parameter Name Type Description
totalNum int The total number of users associated with a user group.
userInfo array Array of users, where each member includes the following fields: uid (user ID), uin (user uin), name (user name), createTime (creation time), and isReceiverOwner (whether the primary account is used).





    "code": 0,
    "message": "",
    "codeDesc": "Success",
    "data": {
        "groupInfo": [],
        "totalNum": "1",
        "userInfo": [
                "uid": 1133398,
                "uin": 3449203261,
                "name": "test1",
                "phoneNum": "13631422209",
                "countryCode": "86",
                "phoneFlag": 0,
                "email": "2385420691@qq.com",
                "emailFlag": 0,
                "userType": 3,
                "createTime": "2017-09-04 16:40:15",
                "isReceiverOwner": 0

Error Codes

For more information, see Error Codes.