--- title: "getCloudMongoDbUserList" slug: "cli-vmongodb-getcloudmongodbuserlist" updated: 2026-09-17T10:11:08Z published: 2026-09-17T10:11:08Z canonical: "cli.ncloud-docs.com/cli-vmongodb-getcloudmongodbuserlist" --- > ## 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. # getCloudMongoDbUserList VPC環境で利用できます。 Cloud DB for MongoDBインスタンスの DB Userリストを照会します。 ## 構文 `getCloudMongoDbUserList`構文は次の通りです。 ``` ./ncloud vmongodb getCloudMongoDbUserList \ --cloudMongoDbInstanceNo \ [--regionCode ] \ [--output ] ``` ## オプション `getCloudMongoDbUserList`の実行時に指定できるオプションについて説明します。 ### 必須オプション `getCloudMongoDbUserList`の必須オプションです。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--cloudMongoDbInstanceNo` | String | Required | Cloud DB for MongoDBインスタンス番号 - [getCloudMongoDbInstanceList](/docs/ja/cli-vmongodb-getcloudmongodbinstancelist)を参照 | ### 共通オプション `vmongodb`コマンドで共通して使用するオプションについては、[Cloud DB for MongoDB (VPC)のオプション](/docs/ja/cli-vmongodb#%EC%98%B5%EC%85%98)を参照してください。 ## 例 DB Userリストの照会リクエストが成功すると、各ユーザーのアカウント情報が返されます。 ### コマンド コマンドの例は次の通りです。 ``` ./ncloud vmongodb getCloudMongoDbUserList \ --cloudMongoDbInstanceNo 34567890 \ --regionCode KR \ --output json ``` ### 出力 出力の例は次の通りです。 ``` { "getCloudMongoDbUserListResponse": { "totalRows": 2, "cloudMongoDbUserList": [ { "userName": "testuser2", "databaseName": "testdb2", "authority": "READ_WRITE" }, { "userName": "testuser1", "databaseName": "testdb1", "authority": "READ" } ], "requestId": "b2c3d4e5-f6a7-8901-bcde-f23456789012", "returnCode": "0", "returnMessage": "success" } } ```