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

# Onelogin

> Oneloginとの連携の手順です。

## サポートする機能

<Badge color="blue">従業員マスター連携</Badge> <Badge color="blue">アカウント削除</Badge> <Badge color="blue">アカウント無効化</Badge> <Badge color="blue">アカウント作成</Badge>

## 事前準備

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

[Oneloginログインページ](https://app.onelogin.com/login)にて、Oneloginドメインを入力しログインします。

<img src="https://mintcdn.com/moneyforwardi/cYHdVshJUSVuJ5aA/images/integrations/mfo3ap26rr/1661742554958-image.png?fit=max&auto=format&n=cYHdVshJUSVuJ5aA&q=85&s=dc392127a1b27f735252824bed8f5534" alt="Oneloginログイン画面" width="652" height="433" data-path="images/integrations/mfo3ap26rr/1661742554958-image.png" />

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

連携する組織の**Oneloginドメインの一部がワークスペースキー**となります。

https\://**{ワークスペースキー}**.onelogin.com/

### クライアントID、クライアントシークレットの取得方法

Oneloginにログイン後、上部タブメニューより**Developer > API Credential** と進み、**New credential**をクリックします。

<img src="https://mintcdn.com/moneyforwardi/cYHdVshJUSVuJ5aA/images/integrations/mfo3ap26rr/1649036682064-image.png?fit=max&auto=format&n=cYHdVshJUSVuJ5aA&q=85&s=6b6c99bf18db4aca828240eaac009314" alt="API Credential画面" width="1406" height="326" data-path="images/integrations/mfo3ap26rr/1649036682064-image.png" />

以下のような画面が立ち上がるので、**Nameに任意の名前を入力、Manage Usersにチェック**を入れ,Saveします。

<img src="https://mintcdn.com/moneyforwardi/cYHdVshJUSVuJ5aA/images/integrations/mfo3ap26rr/1664331404568-image.png?fit=max&auto=format&n=cYHdVshJUSVuJ5aA&q=85&s=1a22190aecb049fc73efd1cf8947a4f1" alt="Credential設定画面" width="1078" height="1162" data-path="images/integrations/mfo3ap26rr/1664331404568-image.png" />

**Client IDとClient Secret**が表示されます。これらが、連携に必要な**クライアントID、クライアントシークレット**となるので、保存しておきます。

<img src="https://mintcdn.com/moneyforwardi/cYHdVshJUSVuJ5aA/images/integrations/mfo3ap26rr/1649035763081-clean-shot.png?fit=max&auto=format&n=cYHdVshJUSVuJ5aA&q=85&s=50b3a2a4561dc71ccfafe608ec9ddaa3" alt="Client ID・Secretの表示画面" width="542" height="416" data-path="images/integrations/mfo3ap26rr/1649035763081-clean-shot.png" />

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

インテグレーション画面にて、Oneloginで検索し**連携**をクリックします。

<img src="https://mintcdn.com/moneyforwardi/cYHdVshJUSVuJ5aA/images/integrations/mfo3ap26rr/1649036061036-image.png?fit=max&auto=format&n=cYHdVshJUSVuJ5aA&q=85&s=f763afc83854320278b2f3d35d575074" alt="Admina連携画面" width="818" height="356" data-path="images/integrations/mfo3ap26rr/1649036061036-image.png" />

前の手順で取得した**ワークスペースキー、クライアントID、クライアントシークレット**を入力し、**連携する**をクリックします。

<Info>
  ドメイン（任意）を入力すると、指定したドメインに紐づくアカウントのみを連携できます。指定しない場合、全アカウントを同期します。
</Info>

<img src="https://mintcdn.com/moneyforwardi/cYHdVshJUSVuJ5aA/images/integrations/mfo3ap26rr/1685351735011-image.png?fit=max&auto=format&n=cYHdVshJUSVuJ5aA&q=85&s=10854411cd7d2872448c2d313071ff24" alt="連携情報入力画面" width="489" height="870" data-path="images/integrations/mfo3ap26rr/1685351735011-image.png" />

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

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

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