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

# バクラクシリーズ

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

## サポートする機能

<Badge color="blue">アカウント無効化</Badge> <Badge color="blue">アカウント作成</Badge>

## 事前準備

### バクラクシリーズとの連携方法

[バクラクのログインページ](https://id.layerx.jp/auth/sign_in)より**メールアドレス・パスワード**を入力しログインします。

<img src="https://mintcdn.com/moneyforwardi/Xi2n4osxO3YA8XjG/images/integrations/r7u4ghb6yi/1708578936349-image.png?fit=max&auto=format&n=Xi2n4osxO3YA8XjG&q=85&s=ae3e40a6d576b6dcbe8927b6a01fdab0" alt="バクラクログイン画面" width="621" height="656" data-path="images/integrations/r7u4ghb6yi/1708578936349-image.png" />

### APIキーの発行

<Info>
  APIキーの発行には事前にLayerX社にお申し込みが必要となります。連携をご希望のお客様は、[【バクラク】SaaS管理ツール連携申込フォーム](https://docs.google.com/forms/d/e/1FAIpQLSct-ZVSsOHbNw1nO9J0nwoCTrXgA6slPGM-XuMLwx5Zl5WL2A/viewform)に記入の上お申し込みください。
</Info>

1. バクラク共通管理にアクセスし、 設定 > API管理よりAPIキータブの\[**新規作成**]をクリックします。
   詳細は[Bakuraku共通管理（外部サイト）](https://bakuraku-login.layerx.jp/hc/ja)をご参照ください。

<img src="https://mintcdn.com/moneyforwardi/Xi2n4osxO3YA8XjG/images/integrations/r7u4ghb6yi/1724731585359-image.png?fit=max&auto=format&n=Xi2n4osxO3YA8XjG&q=85&s=37ace6702f22468332b98d8c3fe955f0" alt="APIキー新規作成画面" width="2632" height="856" data-path="images/integrations/r7u4ghb6yi/1724731585359-image.png" />

2. バクラク共通管理にアクセスし、 設定 > API管理よりAPIキータブの\[新規作成]をクリックします。
   APIキーに任意の名称を入力し、スコープには以下のとおりチェックをいれて保存します。
   * ユーザー：`読み取り`、`書き込み`
   * 組織図：`読み取り`、`書き込み`

<img src="https://mintcdn.com/moneyforwardi/Xi2n4osxO3YA8XjG/images/integrations/r7u4ghb6yi/1724731684504-image.png?fit=max&auto=format&n=Xi2n4osxO3YA8XjG&q=85&s=b3e47b163900255225b94e2d10941219" alt="APIキースコープ設定画面" width="1580" height="1622" data-path="images/integrations/r7u4ghb6yi/1724731684504-image.png" />

3. APIキーが発行されますので、コピーして保存しておきます。Adminaの連携に必要なAPIキーの取得は以上です。

<img src="https://mintcdn.com/moneyforwardi/Xi2n4osxO3YA8XjG/images/integrations/r7u4ghb6yi/1724731293104-image.png?fit=max&auto=format&n=Xi2n4osxO3YA8XjG&q=85&s=3ba7ec2bb938f4f76a09cbc2e284e78b" alt="APIキー発行完了画面" width="1572" height="630" data-path="images/integrations/r7u4ghb6yi/1724731293104-image.png" />

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

1. Adminaのインテグレーション > インテグレーションで「**バクラクシリーズ**」を検索します。

<img src="https://mintcdn.com/moneyforwardi/Xi2n4osxO3YA8XjG/images/integrations/r7u4ghb6yi/1708580795167-image.png?fit=max&auto=format&n=Xi2n4osxO3YA8XjG&q=85&s=7df8d3c20123fd4822dd7f03c2f2c43e" alt="Admina インテグレーション検索画面" width="947" height="606" data-path="images/integrations/r7u4ghb6yi/1708580795167-image.png" />

2. 取得したAPIキーを入力し、\[連携する]をクリックします。

<img src="https://mintcdn.com/moneyforwardi/Xi2n4osxO3YA8XjG/images/integrations/r7u4ghb6yi/1724731825485-image.png?fit=max&auto=format&n=Xi2n4osxO3YA8XjG&q=85&s=57d75f7627f6fa8f744039bd9a574ca5" alt="APIキー入力画面" width="492" height="531" data-path="images/integrations/r7u4ghb6yi/1724731825485-image.png" />

3. バクラクシリーズとの連携に成功すると、アカウント一覧に登録済みのユーザー情報が表示されます。
   正常に完了しない場合は、インテグレーション画面のステータスタブから**編集**し、再度連携をお試しください。
   解決しない場合はチャットにてお問い合わせください。バクラクシリーズの連携概要については[連携ページ](https://admina.moneyforward.com/jp/integrations/bakuraku)をご覧ください。

## アカウントライフサイクル

以下のアカウントライフサイクルに対応しています。

* Provisioning（新規・追加登録）
* Deactivate（無効化）

<Info>
  バクラクの管理画面・Adminaのディレクトリで従業員ID (employeeCode)が未入力の場合はエラーとなります。Admina上でProvisioning/Deactivateを行われる場合は、従業員IDをご入力ください。
  Adminaではディレクトリ > 対象者を選択 > ユーザー情報 > 社員ID（Employee ID）を設定してください。
</Info>
