# マルチテナントモード

<figure><img src="/files/dUNprzYUz9UjQsIQd63v" alt=""><figcaption></figcaption></figure>

### 概要 <a href="#creating-and-configuring-an-automator" id="creating-and-configuring-an-automator"></a>

Keeperオートメーターではマルチテナントがサポートされていますので、一度のデプロイで複数のKeeperエンタープライズ環境を自動化できます。

* MSP環境では、単一のKeeperオートメーターインスタンスを使用して複数の企業に対応できます。
* エンタープライズユーザーの場合、単一のインスタンスで様々なIDプロバイダの承認を処理できます。

サーバーが実行中となると、企業が異なっても複数のSSOノードに使用できます。

### MSPによる複数企業の管理

単一のオートメーターインスタンスを発動して複数の企業を管理する手順は以下のとおりです。

1. **MSP管理者としてコマンダーにログインします**

```
My Vault> login my_msp_admin@company.com
```

2. **コンテキストを管理対象企業に切り替えます**

```
My Vault> msp-info

MSP Plans and Licenses
-----------------------
  #  Plan Id           Available Licenses    Total Licenses    Stash
---  --------------  --------------------  ----------------  -------
  1  business                          83               100        0
  2  businessPlus                      50               100        0
  3  enterprise                        80               100        0
  4  enterprisePlus                    85               100        0

  #      ID  Name                     Plan              Allocated    Active
---  ------  -----------------------  --------------  -----------  --------
  1   81386  Demo Managed Co. LLC     enterprisePlus            5         0
  2   81344  Elite Auto Works         business                  5         4
  3  114391  John's Garage            enterprisePlus            5         0
  4  114392  John's Garages           enterprisePlus            5         0
  5   81345  Perfect Teeth Dental     businessPlus             50         4
  6  114281  Test                     business                 12         0
  7   81346  Troy Financial Services  enterprise               20         0
```

設定したい企業を見つけてIDを選択し、以下のように入力します。

```
switch-to-mc <ID>
```

3. **オートメーターインスタンスを作成します**

「edit」の手順では共通のオートメーターURLを使用します。

例は以下のとおりです。

```
My Vault> automator create --name="Tenant1" --node="SSO Node"
My Vault> automator edit --url=https://my.company.com --skill=team_for_user --skill=device <Automator ID>
My Vault> automator setup <Automator ID>
My Vault> automator init <Automator ID>
My Vault> automator enable <Automator ID>
```

4. **MSPに戻ります**

MSP管理者コンテキストに戻ります

```
My Vault> switch-to-msp
```

管理対象の企業ごとに、上記の4つの手順を繰り返します。

### マルチテナント企業

同じ企業テナントの複数のノードで、単一のオートメーターインスタンスを有効化する手順は以下のとおりです。

1. **管理者としてコマンダーにログインします**

```
My Vault> login admin@company.com
```

2. **オートメーターインスタンスを作成します**

各ノードについて、同じ「edit」URLを使用します。例は以下のとおりです。

```
My Vault> automator create --name="Tenant A" --node="<node_name>"
My Vault> automator edit --url=https://my.company.com --skill=team --skill=team_for_user --skill=device <Automator ID>
My Vault> automator setup <Automator ID>
My Vault> automator init <Automator ID>
My Vault> automator enable <Automator ID>
```

続いて、同じURLエンドポイントで別のインスタンスを設定します。

```
My Vault> automator create --name="Tenant B" --node="Azure"
My Vault> automator edit --url=https://my.company.com --skill=team --skill=team_for_user --skill=device <Automator ID>
My Vault> automator setup <Automator ID>
My Vault> automator init <Automator ID>
My Vault> automator enable <Automator ID>
```

なお、名前とIDは異なり、割り当てられたノードも異なりますが、同じURLを使用します。

すべてのノードに対して手順 (2) を繰り返し、同じオートメーターインスタンスに複数のテナントをセットアップします。


---

# 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.keeper.io/sso-connect-cloud/jp/device-approvals/automator/multi-tenant-mode.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.
