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

## 連携方法

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

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

## 事前準備

### APIで連携する場合

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

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

   <img src="https://mintcdn.com/moneyforwardi/Yz9fubAau8iTSrRo/images/integrations/79jc5hfcpb/1761116109226-screenshot.png?fit=max&auto=format&n=Yz9fubAau8iTSrRo&q=85&s=1413df1976c9023caccb045f2aa67ff7" alt="APIトークン生成画面" width="1920" height="949" 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" />

### 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" />

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

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

2. \[API]または\[ID/Password]タブをクリックします。

   a. **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" />

   b. **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" />

3. サイボウズ Officeとの連携が成功すると、アカウント一覧に登録済みのユーザー情報が表示されます。正常に完了しない場合は、まず [SaaSとの連携に失敗する場合の対処法](/it-management/saas-management/93nahw45is-trouble) に記載のステップをお試しください。それでも解決しない場合は、[ご提供いただきたい情報](/it-management/saas-management/93nahw45is-trouble#info-to-provide) をご確認のうえ、[サポート窓口](/contact-support)までお問い合わせください。
