Batch Query Group Information
View specified group information including: group name, owner, group avatar, group introduction, group announcement, group permission, and custom attributes.
Enabling the Service
Before using this feature, you must enable the profile hosting service by submitting a ticket.
Request Method
POST: https://data center domain/entrust/group/profile/query.json
Rate Limit: 100 requests per second
Signature Rule: All server API requests require signature verification. See API Request Signature.
Body Parameters
The HTTP request body uses application/x-www-form-urlencoded
format and supports the following form parameters:
Parameter | Type | Required | Description |
---|---|---|---|
groupIds | Array | Yes | Group IDs (maximum 50 per request). |
Request Example
POST /entrust/group/profile/query.json HTTP/1.1
Host: api.rong-api.com
App-Key: uwd1c0sxdlx2
Nonce: 14314
Timestamp: 1408710653491
Signature: 45beb7cc7307889a8e711219a47b7cf6a5b000e8
Content-Type: application/x-www-form-urlencoded
groupId=groupId1&groupId=groupId2
Response
The HTTP response body contains a JSON object with the following structure:
Field | Type | Description |
---|---|---|
code | Number | Status code. 200 indicates success. |
profiles | JSONArray | Group information list |
profiles structure | ||
profiles[i].groupId | String | Group ID |
profiles[i].groupName | String | Group name |
profiles[i].groupProfile | String | Basic group information (JSON format) |
profiles[i].groupExtProfile | String | Custom attributes (JSON format) |
profiles[i].permissions | String | Permission settings (JSON format) |
profiles[i].owner | String | Group Owner |
profiles[i].createTime | Long | Group creation timestamp |
profiles[i].memberCount | Number | Member count |
groupProfile
keys:
Key | Type | Length/Range | Description |
---|---|---|---|
introduction | String | ≤512 characters | Group introduction |
announcement | String | ≤1024 characters | Group announcement |
portraitUrl | String | ≤128 characters | Group avatar URL |
permissions
keys:
Key | Type | Range | Description |
---|---|---|---|
joinPerm | Number | Values:
| Join permission |
removePerm | Number | Values:
| Remove member permission |
memInvitePerm | Number | Values:
| Invite permission |
invitePerm | Number | Values:
| Invitation handling |
profilePerm | Number | Values:
| Modify group profile/permission |
memProfilePerm | Number | Values:
| Edit member profile permission |
Response Example
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"code": 200,
"profiles": [{
"groupId":"gorupId1",
"createTime":1717717737377,
"owner":"userId1",
"groupName":"gName1",
"groupProfile":"{\"introduction\":\"introductionTest\",\"portraitUrl\":\"XXXX\"}",
"memberCount":10
},
{
"groupId":"gorupId2",
"createTime":1717717737376,
"owner":"userId2",
"groupName":"gName2",
"announcement":"announcement",
"introduction":"introduction",
"groupExtProfile":"{\"ext_key1\":\"value1\",\"ext_key2\":\"value2\"}",
"memberCount":9
}
]
}
} ] }