# Garoon連携

## Garoon連携とは

Garoon連携とは、immedioとサイボウズGaroonを接続し、カレンダー予定の同期や面談予約時の自動予定作成を行う機能です。OAuth2認証によりGaroonと接続します。

## Garoon連携でできること

| 機能            | 説明                                                |
| ------------- | ------------------------------------------------- |
| OAuthクライアント設定 | GaroonのOAuth認証情報（サブドメイン、クライアントID、クライアントシークレット）を設定 |
| 設定変更          | 設定済みのOAuthクライアント情報を変更                             |

## 設定方法

### 事前準備

Garoon連携を利用するには、事前にサイボウズ開発者ポータルでOAuthクライアントを作成し、以下の情報を取得する必要があります。

* クライアントID
* クライアントシークレット
* サイボウズのサブドメイン（例：`example.cybozu.com` の場合は `example`）

### immedio側の設定

1. 「企業設定」メニューから「外部ツール連携」>「Garoon連携」を選択
2. 以下の認証情報を入力：
   * **サブドメイン**：サイボウズ環境のサブドメイン（例：`example.cybozu.com` の場合は `example`）（必須）
   * **クライアントID**：OAuthクライアントのクライアントID（必須）
   * **クライアントシークレット**：OAuthクライアントのクライアントシークレット（必須）
3. 「保存する」ボタンをクリック

### 設定項目

| 項目           | 説明                             | 必須 |
| ------------ | ------------------------------ | -- |
| サブドメイン       | サイボウズ環境のサブドメイン（英数字とハイフンのみ使用可能） | ○  |
| クライアントID     | OAuthクライアントのクライアントID           | ○  |
| クライアントシークレット | OAuthクライアントのクライアントシークレット       | ○  |

### 設定の変更

設定済みの場合、現在のサブドメインとクライアントIDが表示されます。「設定を変更する」ボタンをクリックすることで、設定を編集できます。

## ユーザーごとのGaroon連携 <a href="#user-garoon-link" id="user-garoon-link"></a>

OAuthクライアント設定完了後、各ユーザーがGaroonアカウントとの連携を行う必要があります。連携後、必ず各ユーザーのGaroonログイン名を登録してください。詳細は[ユーザー詳細のカレンダー連携設定](/user-group-management/users/detail.md#garoon-calendar-link)を参照してください。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.immedio.io/company-settings/integrations/garoon.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
