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

# dbt Cloud

> dbt Cloudとの連携方法です。

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

## 事前準備

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

[dbt Cloudログインページ](https://auth.cloud.getdbt.com/login?state=hKFo2SBDa3JobTVPT3ZQbmRUN0dnc1ZieFVoWHZIbDY4Ql9jY6FupWxvZ2luo3RpZNkgd0dSWXRSem5FUk83WDM5ZGxYTXFyOUFpb1pJcEZhNmGjY2lk2SBSbGJ3eTBaa0FRUEJBaEhVNEpnZjZ2bW44SGFBNzNvWQ\&client=Rlbwy0ZkAQPBAhHU4Jgf6vmn8HaA73oY\&protocol=oauth2\&response_type=code\&redirect_uri=https%3A%2F%2Fcloud.getdbt.com%2Fapi%2Fauth%2Fauth-login%2F\&scope=openid%20profile)にて、メールアドレス・パスワードを入力しログインします。

<img src="https://mintcdn.com/moneyforwardi/cYHdVshJUSVuJ5aA/images/integrations/mfg6gqsqmd/1710984772532-image.png?fit=max&auto=format&n=cYHdVshJUSVuJ5aA&q=85&s=b3ab4bc244d12b63e23a4024d8d5d1ff" alt="dbt Cloudログイン画面" width="743" height="679" data-path="images/integrations/mfg6gqsqmd/1710984772532-image.png" />

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

dbt Cloudにログイン後、**設定⚙＞ Account settings** ＞ **Account** と進みます。

<img src="https://mintcdn.com/moneyforwardi/cYHdVshJUSVuJ5aA/images/integrations/mfg6gqsqmd/1710985804796-image.png?fit=max&auto=format&n=cYHdVshJUSVuJ5aA&q=85&s=f9cde7cac004a374620106b7cd76e5dc" alt="Account settings画面" width="567" height="462" data-path="images/integrations/mfg6gqsqmd/1710985804796-image.png" />

**Account ID がワークスペースキー**となるのでコピー・保存します。

<img src="https://mintcdn.com/moneyforwardi/cYHdVshJUSVuJ5aA/images/integrations/mfg6gqsqmd/1710986063255-image.png?fit=max&auto=format&n=cYHdVshJUSVuJ5aA&q=85&s=fe1896da4f7ced9aa0126da9288c8611" alt="Account ID表示画面" width="1221" height="381" data-path="images/integrations/mfg6gqsqmd/1710986063255-image.png" />

### アクセスキーの取得方法

**Settings＞ API tokens ＞ Personal tokens** と進み、**＋Create personal access token** をクリックします。

<img src="https://mintcdn.com/moneyforwardi/cYHdVshJUSVuJ5aA/images/integrations/mfg6gqsqmd/1710986213056-image.png?fit=max&auto=format&n=cYHdVshJUSVuJ5aA&q=85&s=916eec5481374a3c752a630cabca722c" alt="Personal tokens画面" width="1847" height="605" data-path="images/integrations/mfg6gqsqmd/1710986213056-image.png" />

**任意の名称（用途や部署名など）を入力**し**SAVE**をクリックすると、**API token** が表示されます。

**API tokenがアクセスキー**となるのでコピー・保存します。

<img src="https://mintcdn.com/moneyforwardi/cYHdVshJUSVuJ5aA/images/integrations/mfg6gqsqmd/1710986497065-image.png?fit=max&auto=format&n=cYHdVshJUSVuJ5aA&q=85&s=22e5a46a988903599464413420f4233e" alt="API token表示画面" width="838" height="328" data-path="images/integrations/mfg6gqsqmd/1710986497065-image.png" />

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

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

<img src="https://mintcdn.com/moneyforwardi/cYHdVshJUSVuJ5aA/images/integrations/mfg6gqsqmd/1711503418869-image.png?fit=max&auto=format&n=cYHdVshJUSVuJ5aA&q=85&s=a3f8c67e46c03f6345b9fc8b77fcb70a" alt="Adminaインテグレーション検索画面" width="794" height="507" data-path="images/integrations/mfg6gqsqmd/1711503418869-image.png" />

**Base URL**、前の手順で取得した**ワークスペースキーとアクセスキー**を入力し、**連携する**をクリックします。

Base URLは以下から選択してください。どのBase URLを使用するかは、現在のウェブサイトのURLをご確認ください。

* `https://cloud.getdbt.com`
* `https://emea.dbt.com`
* `https://au.dbt.com`
* `https://{account_prefix}.us1.dbt.com`

<img src="https://mintcdn.com/moneyforwardi/cYHdVshJUSVuJ5aA/images/integrations/mfg6gqsqmd/1711503400053-image.png?fit=max&auto=format&n=cYHdVshJUSVuJ5aA&q=85&s=67773e1188e570c634d7634c67cb5f60" alt="インテグレーション設定画面" width="491" height="624" data-path="images/integrations/mfg6gqsqmd/1711503400053-image.png" />

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

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

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