提交工单
咨询集成、功能及报价等问题
Queries the user permissions on a whiteboard. Permissions of a maximum of 10 users can be queried at a time. If no permission has been configured for a user to be queried, the server returns no permission data for the user.
Listed below are the parameters specific to this request. For the complete list of public request parameters, see Accessing Server APIs - Public parameters..
Parameter | Type | Required | Description |
---|---|---|---|
RoomId |
String |
Yes |
ID of the room where the user permissions are to be queried. |
UserId[] |
Array of String |
Yes |
IDs of users whose permissions are to be queried. Permissions of a maximum of 10 users can be queried at a time. |
https://whiteboard-api.zego.im/?Action=GetWhiteboardUserAuth
&RoomId=RoomName
&UserId[]=jack&UserId[]=tom
&<Public request parameters>
Parameter | Type | Description |
---|---|---|
Code |
Number |
Return code. |
Message |
String |
Message. |
RequestId |
String |
Unique request ID generated by ZEGO. |
Data |
Object |
If the value is empty, no permission on whiteboards has been set for the room. |
└ UserId |
String |
User ID. |
└ ModuleAuth[] |
Array of Number |
Operation permissions on whiteboards.
|
└ GraphicAuth[] |
Array of Number |
Operation permissions on diagram elements.
|
{
"Code":0,
"Message":"SUCCESS",
"RequestId":"2237080460466033406",
"Data":[
{
"UserId":"jack",
"ModuleAuth":[1,2],
"GraphicAuth":[32,2]
},
{
"UserId":"tom",
"ModuleAuth":[1,2],
"GraphicAuth":[32]
}
]
}
Listed below are the return codes related to this API. For the complete list of return codes, see Return codes.
Return code | Description |
---|---|
120000001 |
Signature authentication failed. |
120000002 |
Incorrect input parameters. |
120000102 |
Failed to query user permissions. |
120000107 |
The number of users to be queried exceeds the upper limit. |
120000301 |
The room does not exist. |