tencent cloud

ModifyUserRoleProject
Last updated: 2025-11-13 21:02:39
ModifyUserRoleProject
Last updated: 2025-11-13 21:02:39

1. API Description

Domain name for API request: bi.intl.tencentcloudapi.com.

This API is used to modify the user role info in the project.

A maximum of 100 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: ModifyUserRoleProject.
Version Yes String Common Params. The value used for this API: 2022-01-05.
Region No String Common Params. This parameter is not required.
ProjectId No Integer Project ID.
UserId No String User ID.
RoleIdList.N No Array of Integer Role ID list.
Email No String Mailbox.
UserName No String Username.
AppUserId No String WeCom app user ID.

3. Output Parameters

Parameter Name Type Description
ErrorInfo ErrorInfo Custom error information object.
Note: This field may return null, indicating that no valid values can be obtained.
Extra String Expansion.
Note: This field may return null, indicating that no valid values can be obtained.
Msg String Message.
Note: This field may return null, indicating that no valid values can be obtained.
Data String Data.
Note: This field may return null, indicating that no valid values can be obtained.
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Modifying User Information in the Project

This example shows you how to modify user information in the project.

Input Example

POST / HTTP/1.1
Host: bi.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyUserRoleProject
<Common request parameters>

{
    "ProjectId": 1982493789748932,
    "UserId": "UserId",
    "RoleIdList": [
        1982493789748932
    ],
    "Email": "123***@qq.com",
    "UserName": "zhangsan",
    "AppUserId": "AppUserId"
}

Output Example

{
    "Response": {
        "ErrorInfo": {
            "ErrorTip": "",
            "ErrorLevel": "INFO",
            "DocLink": "",
            "FAQ": "",
            "ReservedField": ""
        },
        "Extra": "",
        "Msg": "Successful",
        "Data": "",
        "RequestId": "sadd23jdsh-123cdjds"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InternalError.Internal Internal error.
MissingParameter.MissingParam The required parameter is missing.
UnauthorizedOperation.Authorize Permission error.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback