Identity Platform でマルチテナンシーを設定する

このクイックスタートでは、Identity Platform でマルチテナンシーを有効にして、 Google Cloud コンソールを使用して新しいテナントを作成して選択する方法を説明します。

Identity Platform のマルチテナンシーの詳細については、マルチテナンシーをご覧ください。


このタスクを Google Cloud コンソールで直接行う際の順を追ったガイダンスについては、「ガイドを表示」をクリックしてください。

ガイドを表示


始める前に

  1. Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  3. このガイドで既存のプロジェクトを使用する場合は、このガイドを完了するために必要な権限があることを確認します。新しいプロジェクトを作成した場合は、必要な権限がすでに付与されています。

  4. Verify that billing is enabled for your Google Cloud project.

  5. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  6. このガイドで既存のプロジェクトを使用する場合は、このガイドを完了するために必要な権限があることを確認します。新しいプロジェクトを作成した場合は、必要な権限がすでに付与されています。

  7. Verify that billing is enabled for your Google Cloud project.

  8. 必要なロール

    マルチテナンシーの設定に必要な権限を取得するには、プロジェクトに対する Identity Platform 管理者 roles/identityplatform.admin)IAM ロールを付与するよう管理者に依頼してください。ロールの付与については、プロジェクト、フォルダ、組織に対するアクセス権の管理をご覧ください。

    この事前定義ロールには、マルチテナンシーの設定に必要な権限が含まれています。必要とされる正確な権限については、「必要な権限」セクションを開いてご確認ください。

    必要な権限

    マルチテナンシーを設定するには、次の権限が必要です。

    • firebaseauth.configs.update
    • identitytoolkit.tenants.create

    カスタムロールや他の事前定義ロールを使用して、これらの権限を取得することもできます。

マルチテナンシーの有効化

  1. Google Cloud コンソールで、[Identity Platform>設定] ページに移動します。
    [設定] に移動

  2. [セキュリティ] タブをクリックします。

  3. [マルチテナンシー] セクションで、[テナントを許可] をクリックします。

これにより、マルチテナンシーが有効になり、[テナント] ページが開きます。

これで、最初のテナントを作成する準備が整いました。

テナントを作成する

  1. [テナント] ページで、[テナントを追加] をクリックします。

  2. [名前] フィールドに、テナントの名前を入力します。これは一意である必要はありません。Identity Platform によって自動的に個別の ID が割り当てられます。

  3. [保存] をクリックします。

これで完了です。Identity Platform テナントが作成されました。

テナントを選択する

[設定] ページで、[テナントの範囲] リストからテナントを選択します。

各テナントには、それぞれ独自のプロバイダとユーザーがあります。テナントを選択すると、非テナントの Identity Platform プロジェクトと同じ方法で管理できます。

マルチテナンシーを無効にする

マルチテナンシーを無効にするには、Identity Toolkit API を使用します。

次のステップ