--- title: "addCloudMongoDbUserList" slug: "cli-vmongodb-addcloudmongodbuserlist" tags: ["Cloud DB for MongoDB", "VPC"] updated: 2026-09-17T10:08:42Z published: 2026-09-17T10:08:42Z canonical: "cli.ncloud-docs.com/cli-vmongodb-addcloudmongodbuserlist" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # addCloudMongoDbUserList Available in VPC Add a DB user to a Cloud DB for MongoDB instance. ## Syntax The `addCloudMongoDbUserList` syntax is as follows: ``` ./ncloud vmongodb addCloudMongoDbUserList \ --cloudMongoDbInstanceNo \ --cloudMongoDbUserList \ [--regionCode ] \ [--output ] ``` ## Options This section describes the options available when running `addCloudMongoDbUserList`. ### Required options The following options are required for `addCloudMongoDbUserList`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--cloudMongoDbInstanceNo` | String | Required | Instance number of Cloud DB for MongoDB - See [getCloudMongoDbInstanceList](/docs/en/cli-vmongodb-getcloudmongodbinstancelist). | | `--cloudMongoDbUserList` | List | Required | List of DB users to add - For each user, enter {field=‘value’} pairs within quotation marks, separated by commas. - `userName` (required): DB user account ID. Enter 4-16 characters using English letters, numbers, and special character `_`. The string must start with an English letter. - `password` (required): DB user account password. Enter 8 to 20 characters containing at least one English letter, number, and special character. The special characters ``` `&` `+` `\` `"` `'` `/` and spaces can't be used. - `databaseName` (required): Name of the database to which the DB user will be added. Enter 4-30 characters using English letters, numbers, and special character `_`. The string must start with an English letter. - `authority` (required): DB user permissions. `READ` (data query only) \| `READ_WRITE` (data entry, query, modification, and change available) - Up to 10 can be entered. | ### Common options For information about the options common to all `vmongodb` subcommands, see [Cloud DB for MongoDB (VPC) options](/docs/en/cli-vmongodb#%EC%98%B5%EC%85%98). ## Examples If the request to add a DB user is successful, the specified user will be added to the Cloud DB for MongoDB instance. ### Command The command example is as follows: ``` ./ncloud vmongodb addCloudMongoDbUserList \ --cloudMongoDbInstanceNo 34567890 \ --cloudMongoDbUserList "userName='testuser1', password='Examplepw123!', databaseName='testdb1', authority='READ'" "userName='testuser2', password='Examplepw123!', databaseName='testdb2', authority='READ_WRITE'" \ --regionCode KR \ --output json ``` ### Output The output example is as follows: ``` { "addCloudMongoDbUserListResponse": { "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "returnCode": "0", "returnMessage": "success" } } ```