# Google Workspace Group Mapping


> Assign RudderStack groups and workspace access automatically from Google Workspace group membership sent in the SAML response at sign-in.



If your organization signs in to RudderStack through [Google Workspace SSO](https://www.rudderstack.com/docs/user-guides/sso-setup/google/index.md), you can now give users the right access from their Google Workspace groups. Send group membership in the SAML response, map each Google Workspace group to one or more [RudderStack groups](https://www.rudderstack.com/docs/access-management/groups/index.md), and new users land in the right workspaces with the right policies on their first sign-in.

**Info:** Google Workspace group mapping applies **at the user&#39;s first sign-in only**. Later group changes and deprovisioning in Google Workspace are not synced to RudderStack. Update or revoke existing users&#39; access manually in RudderStack.

See [Map identity provider groups in RudderStack](https://www.rudderstack.com/docs/user-guides/sso-setup/google/index.md#step-7-map-identity-provider-groups-in-rudderstack) for setup steps.

## Why Google Workspace group mapping?

Google Workspace SSO already created users in RudderStack just in time, but every new user arrived with no group access. An admin then had to add each person to the right groups and workspaces by hand. Okta and Azure Entra ID customers could avoid this with [SCIM group sync](https://www.rudderstack.com/docs/access-management/group-mapping/index.md), but Google Workspace teams had no equivalent.

With group mapping, you decide in Google Workspace which groups a person belongs to, and RudderStack grants the matching access as soon as they sign in.

## Key features

- **Group membership over SAML**: Send the `memberOf` attribute from your Google Workspace SAML app. No SCIM connection or extra service token required.
- **One place for all mappings**: Manage Google Workspace mappings in the same **Group Mapping** tab you use for Okta and Azure Entra ID.
- **Flexible mappings**: Map one Google Workspace group to several RudderStack groups, or several Google Workspace groups to the same RudderStack group.
- **Access on first sign-in**: New users inherit the workspace policies of every RudderStack group their Google Workspace groups map to, so admins don't need to set up access for each new user.

## Get started

Group mapping is available on the Enterprise plan. An organization Admin manages the mappings.

1. [Create your RudderStack groups](https://www.rudderstack.com/docs/access-management/groups/index.md#add-a-new-group) and configure their workspace policies.
2. In your Google Workspace SAML app, [send group membership as the `memberOf` attribute](https://www.rudderstack.com/docs/user-guides/sso-setup/google/index.md#step-6-send-group-membership-in-the-saml-response).
3. Go to **Settings** > **Access Management** > **Group Mapping** and [add a mapping](https://www.rudderstack.com/docs/access-management/group-mapping/index.md#add-a-mapping) for each Google Workspace group.

## Known limitations

- **First sign-in only**: Mappings apply when a user signs in for the first time. Moving a user between Google Workspace groups, or changing a mapping, doesn't update existing users.
- **No automatic deprovisioning**: Removing or suspending a user in Google Workspace doesn't remove their RudderStack access. Revoke it manually in RudderStack.
- **Exact group names**: The **IDP group name** in RudderStack must match the Google Workspace group's display name exactly.

## Resources

- [Google Workspace SSO Setup](https://www.rudderstack.com/docs/user-guides/sso-setup/google/index.md): Set up the SAML app, send group membership, and map groups
- [Group Mapping](https://www.rudderstack.com/docs/access-management/group-mapping/index.md): Add, edit, and remove mappings, and see how each identity provider behaves
- [Manage Group Policies](https://www.rudderstack.com/docs/access-management/groups/index.md): Create groups and configure their workspace policies

## Screenshots

**Group membership sent as the `memberOf` attribute in the Google Workspace SAML app**

![Google Workspace group membership mapped to the memberOf attribute](/docs/images/user-guides/google-sso/rudderstack-google-sso-8.webp)

**Mapping a Google Workspace group to RudderStack groups**

![Add group mapping dialog with two RudderStack groups selected](/docs/images/user-guides/google-sso/rudderstack-google-sso-9.webp)

