本頁面說明在 Cloud Marketplace 購買及管理商業產品時,所需的 Identity and Access Management (IAM) 角色和權限。
您可以透過 IAM 定義「哪些人」 (身分) 具備「哪些資源」 的「何種存取權」 (角色),藉此控管存取權。如要使用 Cloud Marketplace 上的商業應用程式, Google Cloud 組織中的使用者必須具備 IAM 角色,才能註冊 Cloud Marketplace 方案及變更計費方案。
事前準備
如要使用 gcloud 授予 Cloud Marketplace 角色和權限,請安裝 gcloud CLI 。或者,您也可以使用 Google Cloud 控制台授予角色。
購買及管理角色
建議您將帳單帳戶管理員 IAM 角色指派給從 Cloud Marketplace 購買服務的使用者。
使用者必須至少具備檢視者 角色,才能存取服務。
OAuth 2.0 和網域驗證的管理員權限
如果 Marketplace 解決方案需要 OAuth 2.0 驗證或網域層級設定 (例如軟體即服務整合),您必須具備管理權限,才能管理專案的身分和安全性設定。
情境
必要權限或角色
動作
重新取得管理員權限
roles/resourcemanager.organizationAdmin
在組織層級授予這個角色,即可管理專案擁有者。
驗證授權網域
roles/cloudsecurityscanner.editor
這個角色可用於管理網路安全和網域相關設定。
管理 OAuth 驗證
roles/owner或roles/editor
設定 OAuth 同意畫面,並提交品牌資訊以供審查。
如要解決常見的驗證問題,例如「找不到網域」或首頁網址沒有回應,請確認網域已在 Search Console 中完成驗證,且隱私權政策可公開存取。如要進一步瞭解身分驗證,請參閱「驗證身分 」一文。
如要更精細地控管使用者權限,您可以建立自訂角色 ,並授予所需權限。
產品相關規定
如要在 Google Cloud 專案中使用下列服務,您必須具備專案編輯者 角色:
Google Cloud Dataprep by Trifacta
Neo4j Aura Professional
Redis Enterprise Cloud
IAM 角色和權限清單
您可以將下列一或多個 IAM 角色授予使用者。視您授予使用者的角色而定,您也必須將角色指派給 Google Cloud 帳單帳戶、組織或專案。詳情請參閱「將 IAM 角色授予使用者 」一節。
Role
Permissions
Consumer Procurement Entitlement Manager
(roles/consumerprocurement.entitlementManager )
Allows managing entitlements and enabling, disabling, and inspecting service states for a consumer
project.
commerceoffercatalog.offers.get
consumerprocurement.consents.check
consumerprocurement.consents.grant
consumerprocurement.consents.list
consumerprocurement.consents.revoke
consumerprocurement.entitlements.*
consumerprocurement.entitlements.get
consumerprocurement.entitlements.list
consumerprocurement.freeTrials.*
consumerprocurement.freeTrials.create
consumerprocurement.freeTrials.get
consumerprocurement.freeTrials.list
orgpolicy.policy.get
resourcemanager.projects.get
resourcemanager.projects.list
serviceusage.catalogs.listMembers
serviceusage.consumerpolicy.*
serviceusage.consumerpolicy.analyze
serviceusage.consumerpolicy.get
serviceusage.consumerpolicy.update
serviceusage.effectivepolicy.get
serviceusage.groups.*
serviceusage.groups.list
serviceusage.groups.listExpandedMembers
serviceusage.groups.listMembers
serviceusage.operations.get
serviceusage.services.disable
serviceusage.services.enable
serviceusage.services.get
serviceusage.services.list
serviceusage.services.listApis
serviceusage.services.listDependentServices
serviceusage.values.test
Consumer Procurement Entitlement Viewer
(roles/consumerprocurement.entitlementViewer )
Allows inspecting entitlements and service states for a consumer project.
commerceoffercatalog.offers.get
consumerprocurement.consents.check
consumerprocurement.consents.list
consumerprocurement.entitlements.*
consumerprocurement.entitlements.get
consumerprocurement.entitlements.list
consumerprocurement.freeTrials.get
consumerprocurement.freeTrials.list
orgpolicy.policy.get
resourcemanager.projects.get
resourcemanager.projects.list
serviceusage.catalogs.listMembers
serviceusage.consumerpolicy.analyze
serviceusage.consumerpolicy.get
serviceusage.effectivepolicy.get
serviceusage.groups.*
serviceusage.groups.list
serviceusage.groups.listExpandedMembers
serviceusage.groups.listMembers
serviceusage.services.get
serviceusage.services.list
serviceusage.services.listApis
serviceusage.services.listDependentServices
serviceusage.values.test
Consumer Procurement Events Viewer
(roles/consumerprocurement.eventsViewer )
Allows viewing key events for an offer
consumerprocurement.events.*
consumerprocurement.events.get
consumerprocurement.events.list
Consumer Procurement License Pool Editor
(roles/consumerprocurement.licensePoolEditor )
Allows managing license pools and license assignments.
consumerprocurement.licensePools.*
consumerprocurement.licensePools.assign
consumerprocurement.licensePools.enumerateLicensedUsers
consumerprocurement.licensePools.get
consumerprocurement.licensePools.unassign
consumerprocurement.licensePools.update
Consumer Procurement License Pool Viewer
(roles/consumerprocurement.licensePoolViewer )
Allows viewing license pools and license assignments.
consumerprocurement.licensePools.enumerateLicensedUsers
consumerprocurement.licensePools.get
Consumer Procurement Order Administrator
(roles/consumerprocurement.orderAdmin )
Allows managing purchases.
billing.accounts.get
billing.accounts.getIamPolicy
billing.accounts.list
billing.accounts.redeemPromotion
billing.credits.list
billing.resourceAssociations.create
commerceoffercatalog.*
commerceoffercatalog.agreements.get
commerceoffercatalog.agreements.list
commerceoffercatalog.documents.get
commerceoffercatalog.documents.list
commerceoffercatalog.offers.get
consumerprocurement.accounts.*
consumerprocurement.accounts.create
consumerprocurement.accounts.delete
consumerprocurement.accounts.get
consumerprocurement.accounts.list
consumerprocurement.consents.check
consumerprocurement.consents.grant
consumerprocurement.consents.list
consumerprocurement.consents.revoke
consumerprocurement.events.*
consumerprocurement.events.get
consumerprocurement.events.list
consumerprocurement.licensePools.*
consumerprocurement.licensePools.assign
consumerprocurement.licensePools.enumerateLicensedUsers
consumerprocurement.licensePools.get
consumerprocurement.licensePools.unassign
consumerprocurement.licensePools.update
consumerprocurement.orderAttributions.*
consumerprocurement.orderAttributions.get
consumerprocurement.orderAttributions.list
consumerprocurement.orderAttributions.update
consumerprocurement.orders.*
consumerprocurement.orders.cancel
consumerprocurement.orders.get
consumerprocurement.orders.list
consumerprocurement.orders.modify
consumerprocurement.orders.place
discoveryengine.billingAccountLicenseConfigs.*
discoveryengine.billingAccountLicenseConfigs.distribute
discoveryengine.billingAccountLicenseConfigs.get
discoveryengine.billingAccountLicenseConfigs.list
discoveryengine.billingAccountLicenseConfigs.retract
Consumer Procurement Order Viewer
(roles/consumerprocurement.orderViewer )
Allows inspecting purchases.
billing.accounts.get
billing.accounts.getIamPolicy
billing.accounts.list
billing.credits.list
commerceoffercatalog.*
commerceoffercatalog.agreements.get
commerceoffercatalog.agreements.list
commerceoffercatalog.documents.get
commerceoffercatalog.documents.list
commerceoffercatalog.offers.get
consumerprocurement.accounts.get
consumerprocurement.accounts.list
consumerprocurement.consents.check
consumerprocurement.consents.list
consumerprocurement.licensePools.enumerateLicensedUsers
consumerprocurement.licensePools.get
consumerprocurement.orderAttributions.get
consumerprocurement.orderAttributions.list
consumerprocurement.orders.get
consumerprocurement.orders.list
discoveryengine.billingAccountLicenseConfigs.get
discoveryengine.billingAccountLicenseConfigs.list
Consumer Procurement Administrator
(roles/consumerprocurement.procurementAdmin )
Allows managing purchases, consents at both billing account and project level.
billing.accounts.get
billing.accounts.getIamPolicy
billing.accounts.list
billing.accounts.redeemPromotion
billing.credits.list
billing.resourceAssociations.create
commerceoffercatalog.*
commerceoffercatalog.agreements.get
commerceoffercatalog.agreements.list
commerceoffercatalog.documents.get
commerceoffercatalog.documents.list
commerceoffercatalog.offers.get
consumerprocurement.*
consumerprocurement.accounts.create
consumerprocurement.accounts.delete
consumerprocurement.accounts.get
consumerprocurement.accounts.list
consumerprocurement.consents.allowProjectGrant
consumerprocurement.consents.check
consumerprocurement.consents.grant
consumerprocurement.consents.list
consumerprocurement.consents.revoke
consumerprocurement.entitlements.get
consumerprocurement.entitlements.list
consumerprocurement.events.get
consumerprocurement.events.list
consumerprocurement.freeTrials.create
consumerprocurement.freeTrials.get
consumerprocurement.freeTrials.list
consumerprocurement.licensePools.assign
consumerprocurement.licensePools.enumerateLicensedUsers
consumerprocurement.licensePools.get
consumerprocurement.licensePools.unassign
consumerprocurement.licensePools.update
consumerprocurement.orderAttributions.get
consumerprocurement.orderAttributions.list
consumerprocurement.orderAttributions.update
consumerprocurement.orders.cancel
consumerprocurement.orders.get
consumerprocurement.orders.list
consumerprocurement.orders.modify
consumerprocurement.orders.place
discoveryengine.billingAccountLicenseConfigs.*
discoveryengine.billingAccountLicenseConfigs.distribute
discoveryengine.billingAccountLicenseConfigs.get
discoveryengine.billingAccountLicenseConfigs.list
discoveryengine.billingAccountLicenseConfigs.retract
orgpolicy.policy.get
resourcemanager.projects.get
resourcemanager.projects.list
serviceusage.catalogs.listMembers
serviceusage.consumerpolicy.*
serviceusage.consumerpolicy.analyze
serviceusage.consumerpolicy.get
serviceusage.consumerpolicy.update
serviceusage.effectivepolicy.get
serviceusage.groups.*
serviceusage.groups.list
serviceusage.groups.listExpandedMembers
serviceusage.groups.listMembers
serviceusage.operations.get
serviceusage.services.disable
serviceusage.services.enable
serviceusage.services.get
serviceusage.services.list
serviceusage.services.listApis
serviceusage.services.listDependentServices
serviceusage.values.test
Consumer Procurement Viewer
(roles/consumerprocurement.procurementViewer )
Allows inspecting purchases, consents and entitlements and service states for a consumer project.
billing.accounts.get
billing.accounts.getIamPolicy
billing.accounts.list
billing.credits.list
commerceoffercatalog.*
commerceoffercatalog.agreements.get
commerceoffercatalog.agreements.list
commerceoffercatalog.documents.get
commerceoffercatalog.documents.list
commerceoffercatalog.offers.get
consumerprocurement.accounts.get
consumerprocurement.accounts.list
consumerprocurement.consents.check
consumerprocurement.consents.list
consumerprocurement.entitlements.*
consumerprocurement.entitlements.get
consumerprocurement.entitlements.list
consumerprocurement.freeTrials.get
consumerprocurement.freeTrials.list
consumerprocurement.licensePools.enumerateLicensedUsers
consumerprocurement.licensePools.get
consumerprocurement.orderAttributions.get
consumerprocurement.orderAttributions.list
consumerprocurement.orders.get
consumerprocurement.orders.list
discoveryengine.billingAccountLicenseConfigs.get
discoveryengine.billingAccountLicenseConfigs.list
orgpolicy.policy.get
resourcemanager.projects.get
resourcemanager.projects.list
serviceusage.catalogs.listMembers
serviceusage.consumerpolicy.analyze
serviceusage.consumerpolicy.get
serviceusage.effectivepolicy.get
serviceusage.groups.*
serviceusage.groups.list
serviceusage.groups.listExpandedMembers
serviceusage.groups.listMembers
serviceusage.services.get
serviceusage.services.list
serviceusage.services.listApis
serviceusage.services.listDependentServices
serviceusage.values.test
將 IAM 角色授予使用者
在上述表格 的角色中,consumerprocurement.orderAdmin 和 consumerprocurement.orderViewer 角色必須在帳單帳戶或組織層級指派,consumerprocurement.entitlementManager 和 consumerprocurement.entitlementViewer 角色則必須在專案或組織層級指派。
如要使用 gcloud 將角色授予使用者,請執行下列任一指令:
機構 您必須具備 resourcemanager.organizationAdmin 角色,才能在組織層級指派角色。
gcloud organizations add-iam-policy-binding organization-id \
--member= member --role= role-id
預留位置值如下:
organization-id :您要授予角色的組織數字 ID。
member :您要授予存取權的使用者。
role-id :角色 ID,請參閱上表。
帳單帳戶 您必須具備 billing.admin 角色,才能在帳單帳戶層級指派角色。
gcloud beta billing accounts set-iam-policy account-id \
policy-file
預留位置值如下:
account-id :您的帳單帳戶 ID,可從「管理帳單帳戶 」頁面取得。
policy-file :IAM 政策檔案 ,採用 JSON 或 YAML 格式。政策檔案必須包含上表中的角色 ID,以及您要指派角色的使用者。
專案 您必須具備 resourcemanager.folderAdmin 角色,才能在專案層級指派角色。
gcloud projects add-iam-policy-binding project-id \
--member= member --role= role-id
預留位置值如下:
project-id :您要授予角色的專案。
member :您要授予存取權的使用者。
role-id :角色 ID,請參閱上表。
如要使用 Google Cloud 控制台將角色授予使用者,請參閱 IAM 說明文件,瞭解如何授予、變更及撤銷使用者的存取權 。
搭配 Cloud Marketplace 使用自訂角色
如要精細控管授予使用者的權限,可以建立自訂角色 ,並授予所需權限。
如果您要為從 Cloud Marketplace 購買服務的使用者建立自訂角色,該角色必須包含他們用於購買服務的帳單帳戶的下列權限:
使用單一登入 (SSO) 存取合作夥伴網站
某些 Cloud Marketplace API 產品支援單一登入 (SSO) 至合作夥伴的外部網站。組織內獲得授權的使用者,可以在產品詳細資料頁面中,看到「在供應商網站上管理」按鈕。這個按鈕會將使用者導向合作夥伴的網站。在某些情況下,系統會提示使用者「使用 Google 帳戶登入」。在其他情況下,使用者會登入共用帳戶。
如要使用單一登入功能,使用者必須前往產品詳細資料頁面,並選取適當的專案。專案必須連結至已購買方案的帳單帳戶。如要進一步瞭解 Cloud Marketplace API 方案管理,請參閱「管理計費方案 」。
此外,使用者在所選專案中必須具備足夠的 IAM 權限。大多數產品都需要 roles/consumerprocurement.entitlementManager (或 roles/editor 基本角色 )。
特定產品的最低權限
下列產品可使用不同的權限組合,存取單一登入 (SSO) 功能:
Apache Kafka on Confluent Cloud
DataStax Astra for Apache Cassandra
Elastic Cloud
Neo4j Aura Professional
Redis Enterprise Cloud
對於這些產品,您可以使用下列最低權限:
consumerprocurement.entitlements.get
consumerprocurement.entitlements.list
serviceusage.services.get
serviceusage.services.list
resourcemanager.projects.get
這些權限通常會透過 roles/consumerprocurement.entitlementManager 或 roles/consumerprocurement.entitlementViewer 角色授予。