---
title: "Create the Google Cloud service account and grant access"
---

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.

:::note[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](/connect-clouds/google/prerequisites).
:::

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

:::steps
### 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.create`
- `pubsub.subscriptions.get`
- `servicemanagement.services.check`
- `servicemanagement.services.report`
- `consumerprocurement.entitlements.get`
- `consumerprocurement.entitlements.list`
:::


## Grant the service account access

:::steps
### 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.

:::tip[What happens next]
SaaSify registers a Pub/Sub subscription when you save the configuration, so the cloud can push purchase and entitlement events. If the subscription is missing, the configuration table shows a Pub/Sub error, and General Settings shows the **PubSub expiration policy** and **Days left for expiration**.
:::

## Next

::::cards
:::card[Add the Google Cloud seller account]{href="/connect-clouds/google/add-seller-account"}
Upload the credentials file, validate and save.
:::
::::
