tencent cloud

AddUsersForUserManager
Last updated: 2025-11-13 20:48:54
AddUsersForUserManager
Last updated: 2025-11-13 20:48:54

1. API Description

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

This API is available for clusters with OpenLDAP components configured.
This API is used to add user lists (user management).

A maximum of 20 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: AddUsersForUserManager.
Version Yes String Common Params. The value used for this API: 2019-01-03.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
InstanceId Yes String Cluster string ID
UserManagerUserList.N Yes Array of UserInfoForUserManager User information list

3. Output Parameters

Parameter Name Type Description
SuccessUserList Array of String The user list that is successfully added
Note: This field may return null, indicating that no valid value can be obtained.
FailedUserList Array of String The user list that is not successfully added
Note: This field may return null, indicating that no valid value can be obtained.
FlowId Integer Flow ID. If the flow ID is larger than 0, it means that the flow is launched; if the flow ID is equal to 0, it means that no flow is launched.
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 Adding a User

Input Example

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

{
    "InstanceId": "emr-o88f3whr",
    "UserManagerUserList": [
        {
            "UserName": "user1",
            "UserGroup": "group1",
            "PassWord": "ceshi123",
            "ReMark": "ceshi",
            "Groups": [
                "group1"
            ]
        }
    ]
}

Output Example

{
    "Response": {
        "FailedUserList": [],
        "RequestId": "69048737-8f4f-4825-b4f6-a67dbf3f198c",
        "SuccessUserList": [
            "user1"
        ]
    }
}

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
FailedOperation Operation failed.
FailedOperation.DBException DB exception.
InternalError Internal error.
InternalError.CamCgwError An error occurred while calling another service API.
InvalidParameter.InvalidInstanceName Invalid cluster name.
LimitExceeded.RequestBacklogExceedsLimit Request backlogs have exceeded the limit.
LimitExceeded.UserCountExceedsLimit Number of users exceeds the limit.
ResourceNotFound.InstanceNotFound The instance was not found.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback