> ## Documentation Index
> Fetch the complete documentation index at: https://docs.iru.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Workspace

> Let users sign in to Iru Identity with their Google Workspace accounts using the built-in connection template for federated authentication and provisioning.

Connecting **Google Workspace** lets your users sign in to Iru (and reach the
apps you have assigned them) using the Google Accounts they already have. Iru
provides a **Google Workspace template** that pre-fills the standard
configuration, so this is one of the quickest providers to connect.

> [!NOTE]
>
> Most organizations that use Iru Identity as their identity provider have users
> sign in directly with a passkey or the Iru Access app. Connect Google Workspace
> when you use Iru Identity as an authentication layer into the Iru platform
> rather than your primary identity provider, or to ease a migration onto Iru
> Identity. See [Federated Authentication](https://docs.iru.com/en/identity/connections/connections-overview).

> [!NOTE]
>
> You need administrator access to your Iru tenant, and access to the
> Google Admin console for your Google Workspace organization, to complete
> this connection.

## Before you begin

**1. Confirm your sign-in domains**

Note the email **domains** your users sign in with (for example,
`yourcompany.com`). You can restrict the connection to these domains so only
users in them use it.

**2. Decide how Iru matches users**

When someone signs in through Google, Iru matches them to a user in your
directory. Decide which value to match on, typically the user's email or
username. See [user matching](https://docs.iru.com/en/identity/connections/connections-overview#what-you-configure-on-every-identity-provider-connection).

**3. Make sure your users exist in Iru**

Sign-in through a connection resolves to an existing Iru user. Add or import
your users first; see [Importing users](https://docs.iru.com/en/identity/directory/importing-users.md)
or [Directory Sync](https://docs.iru.com/en/identity/directory/directory-sync).

## Connect Google Workspace

**1. Add the connection**

In **Access → Authentication**, add an **authentication method** and choose the
**Google Workspace** template. Using the template fills in the standard
settings for you.

**2. Authorize Iru with Google**

Follow the prompts to authorize Iru against your Google Workspace
organization, signing in with a Google **super administrator** account when
asked and consenting to the standard sign-in scopes (`openid`, `email`, and
`profile`). If your organization provides its own OAuth client, create it in
the Google Cloud console, add the redirect URI Iru shows for this connection,
and copy its client ID and secret into Iru. Google's console screens can
change; follow Google's current documentation if the prompts differ.

**3. Choose what the connection is used for**

Select the connection's **use cases**: **end-user sign-in**, **device
enrollment**, or both. Most setups enable end-user sign-in.

**4. Restrict to your domains**

If you want only users in specific email domains to use this connection,
enable **domain restrictions** and add those domains.

**5. Set user matching**

Choose how Iru matches a Google sign-in to an Iru user (by UPN, username,
external ID, or a custom attribute). Pick a value that is unique and stable
for every user.

**6. Save the connection**

Save, then sign in as a test user whose email is in an allowed domain to
confirm the hand-off to Google works end to end.

> [!TIP]
>
> Test with a single user before rolling the connection out broadly. If sign-in
> fails to land on the right user, revisit your **user matching** choice; the
> matched value must be present and unique for everyone who uses the connection.

## How sign-in works once connected

When someone signs in, Iru hands the sign-in off to Google, Google confirms the
user, and Iru continues the session before evaluating the app's
[authentication policy](https://docs.iru.com/en/identity/authentication/authentication-policies.md)
before granting access. For the full picture, see
[System architecture](https://docs.iru.com/en/identity/getting-started/system-architecture.md).

## Related Articles

> [card] [Federated Authentication](https://docs.iru.com/en/identity/connections/connections-overview)
>
> Use cases, domain restrictions, and user matching, explained in one place.

> [card] [Microsoft Entra ID](https://docs.iru.com/en/identity/connections/microsoft-entra-id.md)
>
> Connect Microsoft Entra ID for sign-in with its own template.

> [card] [Authentication policies](https://docs.iru.com/en/identity/authentication/authentication-policies.md)
>
> The policy Iru evaluates after Google confirms the user.

> [card] [Custom SAML](https://docs.iru.com/en/identity/connections/custom-saml.md)
>
> Connect a provider that is not covered by a template.


## Related topics

- [Passport Configuration with Google Workspace](https://docs.iru.com/en/endpoint/library/passport/google-workspace/passport-configuration-with-google-workspace.md)
- [User Directory Integration with Google Workspace](https://docs.iru.com/en/endpoint/integrations/directory-services/user-directory-integration-with-google-workspace.md)
- [Single Sign-On with Google Workspace (Native)](https://docs.iru.com/en/endpoint/integrations/single-sign-on-integrations/single-sign-on-with-google-workspace-native.md)
