> ## Documentation Index
> Fetch the complete documentation index at: https://developer.box.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Slack統合マッピングの設定

export const Link = ({href, children, className, ...props}) => {
  const localizedHref = localizeLink(href);
  return <a href={localizedHref} className={className} {...props}>
      {children}
    </a>;
};

統合マッピングAPIの使用を開始する前に、以下の手順を実行します。

## ロール

管理者または共同管理者のロールが割り当てられていることを確認します。

## Box for Slackのインストールと構成

1. 適切なSlackワークスペースまたはオーガナイゼーションに[Box for Slack][1]をインストールします。
2. [SlackのコンテンツレイヤーとしてのBoxの使用][2]を有効にします。
3. 使用しているサービスアカウントが、マッピングされるフォルダのコラボレータであることを確認します。そのためには、`Invite People`フォルダオプションを使用して、サービスアカウントをコラボレータとして招待します。

エラーが発生した場合は、<Link href="/guides/integration-mappings/slack-mappings/troubleshooting">トラブルシューティングガイド</Link>を参照してください。

## Boxアプリケーションの作成

1. [Box開発者コンソール][5]で、<Link href="/guides/authentication/oauth2/oauth2-setup">OAuth認証を使用するPlatformアプリ</Link>を作成します。
2. アプリケーションを開き、\[**構成**] > \[**必須のアクセススコープ**] で \[**Enterpriseのプロパティを管理する**] アプリケーションスコープを有効にします。

<Info>
  Slack側のチャンネル確認のために、<Link href="/reference/get-integration-mappings-slack">統合マッピングAPI</Link>でSlack APIを呼び出します。
</Info>

## 承認

統合マッピングリクエストを承認するには、以下の手順を実行します。

1. 前提条件の1つとして作成した<Link href="/guides/applications/platform-apps/index">Platformアプリ</Link>に移動します。
2. <Link href="/guides/authentication/tokens/developer-tokens">開発者トークン</Link>を生成し、次のように各リクエストのHTTPヘッダーに追加します。

```bash theme={null}
Authorization: Bearer {developer_token}
```

<Info>
  開発者トークンの有効期限は60分です。その時間が経過した後は、再度生成する必要があります。
</Info>

[1]: https://support.box.com/hc/en-us/articles/360044195313-Installing-and-Using-the-Box-for-Slack-Integration

[2]: https://support.box.com/hc/en-us/articles/4415585987859-Box-as-the-Content-Layer-for-Slack

[5]: https://app.box.com/developers/console
