> ## Documentation Index
> Fetch the complete documentation index at: https://support.i.moneyforward.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MongoDB Cloud

> MongoDB Cloudとの連携の手順です。マネーフォワードAdminaからMongoDB Cloudへの、管理者ログインから、連携方法まで一連の手順を解説します。

## サポートする機能

<Badge color="blue">アカウント削除</Badge> <Badge color="blue">アカウント作成</Badge>

## 事前準備

### MongoDB Cloudへのログイン方法

[MongoDB Cloudのログインページ](https://account.mongodb.com/account/login)にて、メールアドレス・パスワードを入力し、ログインします。

<img src="https://mintcdn.com/moneyforwardi/0ySy00K4rFJnnltO/images/integrations/hpxi935tbn/1655963235124_image.png?fit=max&auto=format&n=0ySy00K4rFJnnltO&q=85&s=4a39cfc3340d1fd54da74951eb357ff9" alt="MongoDB Cloudログイン画面" width="486" height="677" data-path="images/integrations/hpxi935tbn/1655963235124_image.png" />

### ワークスペースキーの取得方法

MongoDB Cloudにログイン後、**画面左上**にOrganizationsが表示されているところをクリックします。

メニューが開くので**連携したいOrganizations**を選択します。

<img src="https://mintcdn.com/moneyforwardi/zKVVvDYqzE3w_IfF/images/integrations/hpxi935tbn/1656038194621_image.png?fit=max&auto=format&n=zKVVvDYqzE3w_IfF&q=85&s=4b0236e2de6e39144fcde454de148763" alt="Organizations選択画面" width="623" height="381" data-path="images/integrations/hpxi935tbn/1656038194621_image.png" />

すると、Organizationの設定画面に移動します。

Organizationの設定の**URLの一部がワークスペースキー**となるので、保存します。

`https://cloud.mongodb.com/v2#/org/{ワークスペースキー}/projects`

<img src="https://mintcdn.com/moneyforwardi/zKVVvDYqzE3w_IfF/images/integrations/hpxi935tbn/1656038837498_image.png?fit=max&auto=format&n=zKVVvDYqzE3w_IfF&q=85&s=bd03677f9a793e2ca072ed56121c6ec1" alt="URLからワークスペースキーを取得" width="857" height="284" data-path="images/integrations/hpxi935tbn/1656038837498_image.png" />

### 公開鍵と秘密鍵の取得方法

Organizationの設定画面のサイドメニューより **Access Manager** を選択します。

以下のように**メニュータブをAPI Key**にしたら、Create API Keyをクリックします。

<img src="https://mintcdn.com/moneyforwardi/zKVVvDYqzE3w_IfF/images/integrations/hpxi935tbn/1656039722845_image.png?fit=max&auto=format&n=zKVVvDYqzE3w_IfF&q=85&s=9dc305a80cd4a33d36a157e5c5e0cd2f" alt="API Key作成画面" width="1336" height="934" data-path="images/integrations/hpxi935tbn/1656039722845_image.png" />

\*\*Discriptionには任意の名称（会社名など）\*\*を入力し、**Organization Permissions**の選択をし、Nextをクリックします。

Organization Permissionsは、複数選択が可能ですが最低限 **Organization Member**を選択してください。

<img src="https://mintcdn.com/moneyforwardi/zKVVvDYqzE3w_IfF/images/integrations/hpxi935tbn/1656040134416_image.png?fit=max&auto=format&n=zKVVvDYqzE3w_IfF&q=85&s=a3cadfb57d0070e06545239669b5c41b" alt="Organization Permissions設定" width="630" height="525" data-path="images/integrations/hpxi935tbn/1656040134416_image.png" />

API Keyが作成されます。**Public keyが公開鍵、Private keyが秘密鍵**となるので、保存します。

<Info>
  Private Keyは、セキュリティ上の理由で再表示されません。必ず保存してください。
</Info>

<img src="https://mintcdn.com/moneyforwardi/zKVVvDYqzE3w_IfF/images/integrations/hpxi935tbn/1656039644793_image.png?fit=max&auto=format&n=zKVVvDYqzE3w_IfF&q=85&s=8a404454c29036e9cc0fae549dd69e9d" alt="API Key作成完了" width="864" height="727" data-path="images/integrations/hpxi935tbn/1656039644793_image.png" />

## インテグレーションのセットアップ

インテグレーション画面にて、**MongoDB Cloud**で検索します。

<img src="https://mintcdn.com/moneyforwardi/zKVVvDYqzE3w_IfF/images/integrations/hpxi935tbn/1656040754061_image.png?fit=max&auto=format&n=zKVVvDYqzE3w_IfF&q=85&s=9f781b817a778b09b6a1b1a641e4c67c" alt="インテグレーション画面でMongoDB Cloudを検索" width="796" height="448" data-path="images/integrations/hpxi935tbn/1656040754061_image.png" />

前の手順で取得した**ワークスペースキー、公開鍵、秘密鍵**を入力し、連携するをクリックします。

<img src="https://mintcdn.com/moneyforwardi/zKVVvDYqzE3w_IfF/images/integrations/hpxi935tbn/1656291131667_image.png?fit=max&auto=format&n=zKVVvDYqzE3w_IfF&q=85&s=00e19d69d36def59abe6321062b2bea6" alt="連携情報入力画面" width="516" height="674" data-path="images/integrations/hpxi935tbn/1656291131667_image.png" />

MongoDB Cloudとの連携に成功すると、アカウント一覧に登録済みのユーザー情報が表示されます。

正常に完了しない場合は、インテグレーション画面のステータスタブから**編集**し、再度連携をお試しください。

解決しない場合はチャットにてお問い合わせください。

MongoDB Cloudの連携概要については[連携ページ](http://admina.moneyforward.com/jp/integrations/mongodb-cloud)をご覧ください。
