> ## 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.

# Drata

> Drataとの連携方法です。

## 事前準備

### Drataへのログイン方法

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

<img src="https://mintcdn.com/moneyforwardi/71MdzblAHGiDLIU5/images/integrations/u794qk7sof/1728977471133-image.png?fit=max&auto=format&n=71MdzblAHGiDLIU5&q=85&s=4d8987920e4a1845a9184d3eb131639f" alt="Drataログイン画面" width="762" height="914" data-path="images/integrations/u794qk7sof/1728977471133-image.png" />

### APIキーの確認方法

Drataにログインし、左下のアイコンから **Settings** をクリックします。

<img src="https://mintcdn.com/moneyforwardi/71MdzblAHGiDLIU5/images/integrations/u794qk7sof/1728978269600-image.png?fit=max&auto=format&n=71MdzblAHGiDLIU5&q=85&s=a0c06b277a95646b46a06f65576ebb76" alt="Settings選択" width="1392" height="640" data-path="images/integrations/u794qk7sof/1728978269600-image.png" />

**Company Settings** > **API Keys** をクリックします。

<img src="https://mintcdn.com/moneyforwardi/71MdzblAHGiDLIU5/images/integrations/u794qk7sof/1728978302812-image.png?fit=max&auto=format&n=71MdzblAHGiDLIU5&q=85&s=39cb059ad023ff2708b94808e8110954" alt="API Keys選択" width="2154" height="914" data-path="images/integrations/u794qk7sof/1728978302812-image.png" />

Create API Keysで以下の値を入力します。

* Name: 任意のAPIキーの名前を入力します。
* Expiration: APIキーの有効期限を設定します。有効期限が切れると、再発行と再連携が必要になります。
* Scope: Custom に変更し、`User List` とCompany Settings > `List company info` にチェックをいれます。

*Details*

<img src="https://mintcdn.com/moneyforwardi/71MdzblAHGiDLIU5/images/integrations/u794qk7sof/1728978516926-image.png?fit=max&auto=format&n=71MdzblAHGiDLIU5&q=85&s=c9eeba15243e2aa3326d439cc2e3a083" alt="APIキー詳細入力" width="1894" height="1452" data-path="images/integrations/u794qk7sof/1728978516926-image.png" />

*Scope*

<img src="https://mintcdn.com/moneyforwardi/71MdzblAHGiDLIU5/images/integrations/u794qk7sof/1728978490505-image.png?fit=max&auto=format&n=71MdzblAHGiDLIU5&q=85&s=450ae4d5e88830a5c3d3fbcaba5be776" alt="Scope設定" width="1008" height="1886" data-path="images/integrations/u794qk7sof/1728978490505-image.png" />

APIキーが表示されるので、コピーして保存しておきます。これでAPIキーの発行は完了です。

<img src="https://mintcdn.com/moneyforwardi/71MdzblAHGiDLIU5/images/integrations/u794qk7sof/1728978097083-image.png?fit=max&auto=format&n=71MdzblAHGiDLIU5&q=85&s=aa625766ac53d9f323ca6252668f620d" alt="APIキー表示" width="2060" height="1038" data-path="images/integrations/u794qk7sof/1728978097083-image.png" />

### リージョンの確認方法

ご利用のURLによって、リージョンの値が決まります。NAもしくはEUのいずれかになります。

* NA: [https://public-api.drata.com/](https://public-api.drata.com/)
* EU: [https://public-api.eu.drata.com/](https://public-api.eu.drata.com/)

<Info>
  参考: [BASE URL](https://developers.drata.com/docs/#authentication) (Drata API Documentation)
</Info>

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

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

前の手順で取得した **APIキーとリージョン（NA もしくはEU）** を入力し、**連携する** をクリックします。

<img src="https://mintcdn.com/moneyforwardi/71MdzblAHGiDLIU5/images/integrations/u794qk7sof/1728977598751-image.png?fit=max&auto=format&n=71MdzblAHGiDLIU5&q=85&s=e316f2381dcd3acc4ff9420bcd188ca4" alt="連携設定画面" width="500" height="544" data-path="images/integrations/u794qk7sof/1728977598751-image.png" />

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

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

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