> ## Documentation Index
> Fetch the complete documentation index at: https://hc.saas-manager.biz.nuro.jp/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/admina-sbn/hAB795T24a4oxCX7/images/integrations/mfg6gqsqmd/1710984772532-image.png?fit=max&auto=format&n=hAB795T24a4oxCX7&q=85&s=5d4a47f61827999431b937769abaa650" 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/admina-sbn/hAB795T24a4oxCX7/images/integrations/mfg6gqsqmd/1710985804796-image.png?fit=max&auto=format&n=hAB795T24a4oxCX7&q=85&s=5bfb9bceaf2e78d65cb6bf93fb0368b1" alt="Account settings画面" width="567" height="462" data-path="images/integrations/mfg6gqsqmd/1710985804796-image.png" />

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

<img src="https://mintcdn.com/admina-sbn/hAB795T24a4oxCX7/images/integrations/mfg6gqsqmd/1710986063255-image.png?fit=max&auto=format&n=hAB795T24a4oxCX7&q=85&s=875fdbd036e79bbcbb6f53de5174ae74" 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/admina-sbn/hAB795T24a4oxCX7/images/integrations/mfg6gqsqmd/1710986213056-image.png?fit=max&auto=format&n=hAB795T24a4oxCX7&q=85&s=7297132b4a6794b4af93c3b6228c14bf" 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/admina-sbn/hAB795T24a4oxCX7/images/integrations/mfg6gqsqmd/1710986497065-image.png?fit=max&auto=format&n=hAB795T24a4oxCX7&q=85&s=f5ed666b1c915d1bfa746ab9aa4f0697" alt="API token表示画面" width="838" height="328" data-path="images/integrations/mfg6gqsqmd/1710986497065-image.png" />

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

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

<img src="https://mintcdn.com/admina-sbn/hAB795T24a4oxCX7/images/integrations/mfg6gqsqmd/1711503418869-image.png?fit=max&auto=format&n=hAB795T24a4oxCX7&q=85&s=7892ee4fa3e76e33ff0327de3127fc43" 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/admina-sbn/hAB795T24a4oxCX7/images/integrations/mfg6gqsqmd/1711503400053-image.png?fit=max&auto=format&n=hAB795T24a4oxCX7&q=85&s=0426f7d2e670cd48dfa80062673bc117" alt="インテグレーション設定画面" width="491" height="624" data-path="images/integrations/mfg6gqsqmd/1711503400053-image.png" />

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

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

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