設定多用戶群
瞭解如何為 Identity Platform 啟用多用戶群架構,並使用 Google Cloud 控制台建立新用戶群。
如要直接在 Google Cloud 控制台按照逐步指南操作,請按一下「Guide me」(逐步引導):
事前準備
- 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.
-
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
(
roles/resourcemanager.projectCreator
), which contains theresourcemanager.projects.create
permission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
-
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
(
roles/resourcemanager.projectCreator
), which contains theresourcemanager.projects.create
permission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
啟用多租戶架構
在 Google Cloud 控制台中開啟 Identity Platform 的「Settings」(設定) 頁面。
前往「設定」頁面按一下 [Security] (安全性) 分頁標籤。
按一下頁面底部的「允許租戶」。
按一下這個按鈕即可啟用多租戶架構,並開啟「Tenants」(租戶) 頁面。
現在可以建立第一個租戶了。
建立租戶
在 Google Cloud 控制台中開啟 Identity Platform 的「Tenants」(租戶) 頁面。
前往「Tenants」(用戶群) 頁面按一下「新增用戶群」。
輸入租戶的「名稱」。這項 ID 不必是專屬 ID,Identity Platform 會自動指派不同的 ID。
按一下 [儲存]。
恭喜!您已建立 Identity Platform 租戶。
選取用戶群
使用左上角的下拉式選單,即可切換租戶。
每個用戶群都有自己的供應商、設定和使用者。選取租戶後,管理方式與管理非租戶 Identity Platform 專案相同。
停用多租戶架構
使用 Identity Toolkit API 停用多用戶群。