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

# サイボウズ Office

> サイボウズとの連携の手順です。

## サポートする機能

<Badge color="blue">アカウント作成</Badge> <Badge color="blue">アカウント削除</Badge>

<Info>
  連携には共通管理者のメールアドレスとパスワードが必要です。
  サイボウズOfficeとの連携では、Cybozu Officeのユーザーのみを取得します。
  全てのアカウントを取得する連携は「cybozu.com 共通管理」で連携してください。
</Info>

## 連携方法

以下の連携方法で連携いただけます。

* ID/Passwordでの連携
* APIでの連携

## 事前準備

### ID/Passwordで連携する場合

<Info>
  **2FA（2要素認証）をご利用の場合**

  ID/Passwordによる連携で、[2 要素認証](https://jp.cybozu.help/general/ja/id/02042.html)を有効にしたユーザーでは、パスワード認証で REST API を実行できません。

  2要素認証を無効にした連携用アカウントをご用意ください。

  詳細は[2要素認証を設定している場合（外部サイト）](https://cybozu.dev/ja/common/docs/user-api/overview/authentication/#2fa)をご参照ください。
</Info>

#### サイボウズへのログイン方法

[サイボウズ ログインページ](https://www.cybozu.com/jp/login/)または、ご利用のサイボウズのサブドメインから共通の管理者権限のメールアドレス・パスワードを入力し、ログインします。

<img src="https://mintcdn.com/moneyforwardi/nsfls_1kFmYtx8ta/images/integrations/79jc5hfcpb/1661926365281-image.png?fit=max&auto=format&n=nsfls_1kFmYtx8ta&q=85&s=66faaff042d5d3dffe8f9374f217353f" alt="サイボウズログインページ" width="1199" height="434" data-path="images/integrations/79jc5hfcpb/1661926365281-image.png" />

<Info>
  [SAML認証を回避するURL（外部サイト）](https://jp.kintone.help/general/ja/admin/list_saml/saml_restriction#list_saml_saml_restriction_20)

  「SAML認証の使用を必須にする」を有効にしていても、cybozu.com共通管理者だけはパスワード認証を利用してcybozu.comにログインできます。
</Info>

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

サイボウズにログイン後、URLの一部が**ワークスペースキー**となるので、保存しておきます。

`https://{ワークスペースキー}.cybozu.com/o/`

<img src="https://mintcdn.com/moneyforwardi/nsfls_1kFmYtx8ta/images/integrations/79jc5hfcpb/1661924762843-image.png?fit=max&auto=format&n=nsfls_1kFmYtx8ta&q=85&s=69c933fa293ccc4b75400e4726b457b6" alt="ワークスペースキーの例" width="968" height="286" data-path="images/integrations/79jc5hfcpb/1661924762843-image.png" />

### APIで連携する場合

#### APIキーの取得方法

1. cybozu.com共通管理 > 外部連携 > APIトークン > **APIトークンを生成** をクリックします。

<img src="https://mintcdn.com/moneyforwardi/nsfls_1kFmYtx8ta/images/integrations/79jc5hfcpb/1761116109226-screenshot.png?fit=max&auto=format&n=nsfls_1kFmYtx8ta&q=85&s=48567cb678747ccc1501518aa8e1d137" alt="APIトークン生成画面" width="2878" height="1422" data-path="images/integrations/79jc5hfcpb/1761116109226-screenshot.png" />

2. **Read and Write** にチェックを入れ、**生成**をクリックします。

生成された**APIキー**をコピーします。

<img src="https://mintcdn.com/moneyforwardi/nsfls_1kFmYtx8ta/images/integrations/79jc5hfcpb/1761116250754-screenshot.png?fit=max&auto=format&n=nsfls_1kFmYtx8ta&q=85&s=94de9448436c83cbdf0c77fd8632d3d5" alt="APIキー生成結果" width="1472" height="1180" data-path="images/integrations/79jc5hfcpb/1761116250754-screenshot.png" />

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

1. Adminaのインテグレーション画面にて、**サイボウズ Office** で検索します。

<img src="https://mintcdn.com/moneyforwardi/nsfls_1kFmYtx8ta/images/integrations/79jc5hfcpb/1767777996490-screenshot.png?fit=max&auto=format&n=nsfls_1kFmYtx8ta&q=85&s=2f668382f10cf50d7440dc2c308e1811" alt="サイボウズ Office 検索結果" width="1284" height="758" data-path="images/integrations/79jc5hfcpb/1767777996490-screenshot.png" />

### ID/Passwordによる連携

\[ID/Password]タブをクリックし、任意の**ワークスペース名**、前の手順で取得した**ワークスペースキー**、**共通管理者のメールアドレスとパスワード**を入力し、**連携する**をクリックします。

Basic認証を設定している場合は、**Basic認証のログイン名とパスワード**も入力してください。

<img src="https://mintcdn.com/moneyforwardi/yRr9M1Mo9PbmsShv/images/integrations/79jc5hfcpb/1767778195374-screenshot.png?fit=max&auto=format&n=yRr9M1Mo9PbmsShv&q=85&s=f0a58440c118b927399554612f2f7439" alt="ID/Password連携画面" width="676" height="1310" data-path="images/integrations/79jc5hfcpb/1767778195374-screenshot.png" />

### APIによる連携

\[API]タブで、前の手順で取得した**ワークスペースキー、APIキー**を入力し、**連携する**をクリックします。

<img src="https://mintcdn.com/moneyforwardi/yRr9M1Mo9PbmsShv/images/integrations/79jc5hfcpb/1767778207520-screenshot.png?fit=max&auto=format&n=yRr9M1Mo9PbmsShv&q=85&s=f416ebcd447c978b460a422e6d2e5397" alt="API連携画面" width="710" height="998" data-path="images/integrations/79jc5hfcpb/1767778207520-screenshot.png" />

## 連携の確認

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

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

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

サイボウズの連携概要については[連携ページ](http://admina.moneyforward.com/jp/integrations/cybozu)をご覧ください。
