Create a custom role, grant the SaaSify service account access to your marketplace project and Producer Portal, so SaaSify can manage purchases, entitlements and usage through Pub/Sub.
Before you start
- Role: Publisher Admin
- You need: IAM access to your Google Cloud marketplace project, and the service account and SVC account identities from your SaaSify PSM. See Before you connect Google Cloud Marketplace.
SaaSify talks to Google Cloud Marketplace through a service account that SaaSify provides. You create a least-privilege custom role, grant it (plus a few standard roles) to that service account, and give the SaaSify automation account access to the Producer Portal. SaaSify registers a Pub/Sub subscription to receive marketplace events.
Create the custom role
Open the project's Roles page
In the Google Cloud console, go to IAM & Admin → Roles, and select your marketplace project.
Create the role
Select + Create Role. Set the Title to GCPMarketplaceRoleForSaaSifyIntegration, the ID to GCPMarketplaceRoleForSaaSifyIntegration_ID, and Role launch stage to General Availability.
Add the permissions
Add these permissions, then select Create:
pubsub.subscriptions.createpubsub.subscriptions.getservicemanagement.services.checkservicemanagement.services.reportconsumerprocurement.entitlements.getconsumerprocurement.entitlements.list
Grant the service account access
Open IAM
Go to IAM & Admin → IAM with the marketplace project selected, and select Grant Access.
Add the SaaSify service account
Under Add principals, enter the service account your PSM gave you. Under Assign roles, add:
- Commerce Price Management Private Offers Admin
- Commerce Producer Viewer
- GCPMarketplaceRoleForSaaSifyIntegration (the custom role you just made)
Select Save.
Grant the SVC account Producer Portal access
Select Grant Access again, enter the SVC (automation) account from your PSM, and assign Commerce Price Management Private Offers Admin, Commerce Producer Admin, Service Management Administrator and Service Usage Admin. Select Save.
Set up the reporting bucket (for Seller Data Feed)
If you will use Seller Data Feed, create or choose a Cloud Storage bucket, grant the SaaSify marketplace service account the Storage Object Viewer role on it, and add the bucket as a report destination in the Producer Portal (Reports → Add a destination → Google Cloud Storage). Keep the bucket name for the configuration.