Skip to content

← Guides

How to trust Surfski in the Google Workspace Admin console

If Google Workspace blocks mailbox linking, the admin needs to mark your Surfski OAuth app as trusted. Step-by-step for Workspace admins, plus the Internal-app option for organizations.

Updated 2026-10-21

When someone in a Google Workspace organization tries to link their mailbox to Surfski, Google may refuse with an error such as “Access blocked: your organization’s policy”. That’s Workspace working as designed: admins decide which third-party apps may access company data. The fix is for an admin to mark the Surfski OAuth app as trusted.

What you need

  • A Workspace super admin, or an admin with the security privileges for API controls.
  • The OAuth client ID of your Surfski app. It’s in the Google Cloud console under Google Auth Platform → Clients, and ends in .apps.googleusercontent.com.

Mark the app as trusted

  1. Sign in to the Google Admin console.
  2. Go to Security → Access and data control → API controls.
  3. Under App access control, click Manage third-party app access.
  4. Click Add app → OAuth App Name Or Client ID.
  5. Paste the client ID, search, and select your app.
  6. Choose who it applies to: the whole organization, or specific organizational units.
  7. Set access to Trusted and confirm.

Changes usually take effect within minutes, but can take longer. Then ask the user to link the mailbox again. In Surfski, they ask Claude to “link my work Gmail as work” and open the link.

Things to check if it still fails

  • Is the user signing in as the right account? When linking, they must sign in as the mailbox being linked and tick both permission checkboxes.
  • Alias domains. Google sign-in reports a user’s primary address. Put primary addresses in Surfski’s ALLOWED_USERS. Linking an alias address links the primary mailbox behind it.
  • App publishing status. If tokens stop working after a week, the app is still in Testing mode. See the 7-day fix.

For organizations: use an Internal OAuth client

If everyone who will use Surfski is in your Workspace organization, you can set the OAuth app’s user type to Internal (in Google Auth Platform → Audience). Internal apps:

  • can only be used by accounts in your organization;
  • don’t need Google’s app verification or security assessment, whatever scopes they use;
  • don’t show the “unverified app” warning.

This is also how a hosted Surfski can serve a Workspace organization without Google verification: the organization registers its own Internal client, and the service uses it for that organization only. See the roadmap’s deployment models, or talk to us about managed hosting.

Frequently asked questions

Why does Workspace block the sign-in?
Many Workspace organizations restrict which third-party apps may access Google data, especially apps that request Gmail scopes. Until the admin trusts the app, users see an "access blocked" or "admin policy" error when linking a mailbox.
Does trusting the app give it access to everyone's mail?
No. Trusting the app only allows users to grant it access. Each mailbox still has to be linked by someone signing in as that mailbox and approving the permissions.
What is an Internal OAuth client?
An OAuth app whose user type is Internal can only be used by accounts in your own Workspace organization, and Google doesn't require app verification for it. It's the cleanest option for organizations.