# Google Workspace

> Sign in to Neurouter with Google accounts over OpenID Connect, restrict sign-in to your Workspace domain, and manage roles and groups in Neurouter.

Source: https://neurouter.com/integrations/google-workspace · Last updated: 2026-11-24

Neurouter can use Google as its OpenID Connect provider, so people sign in with their Google Workspace accounts.

> **Google doesn't send group membership.** Google's ID tokens carry no groups claim, so Neurouter can't map Google groups to roles automatically. Make the first admin with `BOOTSTRAP_ADMIN_EMAIL`, then manage groups and roles in Neurouter. If you need group sync, put an identity provider that emits a groups claim in front, such as Okta, Entra ID or Keycloak brokering Google.

## 1. Create an OAuth client in Google Cloud

In the Google Cloud console for a project in your organization:

- Configure the OAuth consent screen. For Workspace organizations, choose the **Internal** user type to limit sign-in to your organization.
- Create an **OAuth client ID** of type **Web application**, with the **authorized redirect URI** `https://mcp.example.com/api/auth/callback` (your `PUBLIC_URL` followed by `/api/auth/callback`).
- Note the client ID and secret. See Google's [OpenID Connect documentation](https://developers.google.com/identity/openid-connect/openid-connect).

## 2. Configure Neurouter

```bash
OIDC_ISSUER=https://accounts.google.com
OIDC_CLIENT_ID=<client-id>.apps.googleusercontent.com
OIDC_CLIENT_SECRET=<client-secret>
OIDC_DISPLAY_NAME="Sign in with Google"
OIDC_SCOPES="openid email profile"
OIDC_ALLOWED_EMAIL_DOMAINS=example.com
BOOTSTRAP_ADMIN_EMAIL=it-admin@example.com
```

Don't add a `groups` scope: Google doesn't define one. `OIDC_ALLOWED_EMAIL_DOMAINS` makes sure only addresses in your domains can sign in, even if the consent screen is external.

## Managing access

- Create groups under *Administration → Groups* and add people to them, or pre-provision users under *Administration → Users*.
- Grant servers and tools under *Administration → Access control*.
