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

# Google Workspace

> Set up enterprise login (SAML) and automatic member sync with Google Workspace

Register Arlet as a custom SAML app in Google Workspace. You need super admin rights in the Google Admin console.

> [!NOTE]
>
> This is separate from "Sign in with Google". Use it when your Google Workspace admins want to control who can use Arlet, or when you want to require SSO in Arlet.

## 1. Create a custom SAML app

1. In the [Google Admin console](https://admin.google.com), open **Apps** → **Web and mobile apps** → **Add app** → **Add custom SAML app**.
2. Enter `Arlet` as the app name and continue.
3. Under **Google Identity Provider details**, press **Download Metadata** and save the XML file.

## 2. Enter the service provider details

Enter the values from "Values to enter in your identity provider" in Arlet's organization settings:

| Google field | Arlet value |
| - | - |
| ACS URL | Reply URL (ACS URL) |
| Entity ID | Identifier (Entity ID) |
| Start URL | Sign-on URL (app tile, optional) |
| Name ID format | `EMAIL` |
| Name ID | `Basic Information > Primary email` |

## 3. Attribute mapping

Add these two mappings:

| Google Directory attribute | App attribute |
| - | - |
| Primary email | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress` |
| First name | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name` |

## 4. Turn it on and register it in Arlet

1. Under the app's **User access**, turn it **ON** for the organizational units or groups who use Arlet (it may take a while to apply).
2. Under "Identity provider connection" in Arlet's organization settings, choose **SAML** and select the XML from step 1 under **Or a metadata XML file**.
3. Leave **Use single logout** off (Google Workspace doesn't support single logout).
4. Press **Register**, then **Activate connection**, and confirm you can sign in with your work email.

Google's SAML certificate expires after five years. When you renew it, register the new metadata XML in Arlet again.

## Automatic sync (members and groups)

On top of SSO, Arlet can keep Google Workspace users and groups in step automatically. People suspended or deleted in Google lose access to Arlet, and people who haven't signed in yet still hold a seat. Set up the SSO connection first.

1. In the Google Admin console, create a **group** of the people who use Arlet (for example `arlet-users@example.com`). Members of nested groups are synced too.
2. In Arlet's organization settings, under "Directory sync" → **Sync with Google Workspace**, enter the group email in **Groups to sync** (one per line, up to 20) and press **Authorize with Google**.
3. Sign in with a Google Workspace **administrator** account and allow read access to users and groups.
4. Back in the organization settings, the first sync starts. After that Arlet syncs every 30 minutes.

* Synced people use a seat even before they sign in. People who don't fit in the free seats aren't synced, and the settings show how many.
* The groups you choose are imported as Arlet groups too.
* If a sync would suspend many people at once, or the groups have no members, Arlet pauses it and shows a notice. Check the groups, then press **Sync these changes**.
* If the administrator who authorized leaves or loses access, sync stops. Press **Authorize with Google again** as another administrator.
* To stop, press **Turn off sync**. This also revokes the Google authorization.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.