ETLMCPData Conveyance Works
Log in Start free
Docs

Google Workspace admin blocks Google Ads or GA4: 'admin_policy_enforced' and the fix

Why Google stops a Google Ads or GA4 connection with admin_policy_enforced, and what your Google Workspace admin changes to allow it.

Coming This connector is coming.

If Google stops you with admin_policy_enforced while you connect Google Ads or GA4 with a work account, the block comes from your company, not from etlmcp or from your ad account. Your Google Workspace administrator has a policy that keeps your account from granting one or more of the permissions etlmcp asks for. Only that admin can fix it: they allow etlmcp's app in the Google Admin console, and then you connect again.

What the error means

Google's OAuth documentation for web server apps describes admin_policy_enforced as a refusal caused by the Workspace administrator's policies: the account may not authorize one or more of the requested scopes. Admins can hold back all scopes, or only the sensitive and restricted ones, until they allow a specific app's OAuth client.

How Workspace admins control third-party apps

In the Admin console, each third-party app gets one of four access settings:

Setting What the app may reach
Trusted Every Google Workspace service, restricted ones included
Limited Only services that are not restricted
Specific Google data Only the scopes the admin picks
Blocked No Google data at all

Apps the admin has not configured follow a separate rule. Google's default lets users sign in to any third-party app, so a company on the default blocks nothing. An admin can tighten that rule so unconfigured apps are held back.

What etlmcp asks for

When the connectors are available, the Google Ads connection asks Google for the adwords scope, and the GA4 connection asks for analytics.readonly. Both also ask for openid and userinfo.email, so etlmcp can show which Google account you connected. Whatever setting the admin gives the app has to cover these scopes. With Specific Google data, that means choosing the Google Ads or the Google Analytics read-only access, not only sign-in.

What your admin does

Send your admin these steps:

  1. Sign in to the Admin console with an account that holds the Service Settings administrator privilege.
  2. Go to Security, then Access and data control, then API controls, and open the app access control page.
  3. Find etlmcp's OAuth client and give it an access setting that covers the scopes above, such as Trusted or Specific Google data.

Instead of configuring the app up front, an admin can let users ask for access to unconfigured apps (an option in most editions). Your request then shows in the Apps pending review list, where the admin allows or dismisses it for an organizational unit. Google says changes can take up to 24 hours, so wait before you try again.

When a connection that worked stops

A block can arrive after you connected. If an admin sets a Google service to Restricted, installed apps that are not trusted stop working and Google revokes their tokens. Google's OAuth overview lists this among the reasons a refresh token stops working, along with you removing the app's access yourself.

What you see in etlmcp

If Google sends your browser back to etlmcp with an error during connecting, etlmcp shows Connecting was cancelled on the platform; nothing was saved. No source is created.

If the token is revoked later, a sync of that source ends as failed with a message such as Google Ads needs reconnecting (the {…} needs reconnecting message names the platform). It is not retried, because a refused grant cannot pass by itself. For GA4, an answer from Google with the reason USER_BLOCKED_BY_ADMIN is treated the same way, as a connection Google refused. Reconnecting fails too until the admin allows the app, so ask your admin first and reconnect after the change has taken effect. For other reasons a Google token stops working, see Google connector errors and GA4 connector errors.

Related

Sources

  1. Using OAuth 2.0 for Web Server Applications — developers.google.com, checked
  2. Using OAuth 2.0 to Access Google APIs — developers.google.com, checked
  3. Control which apps access Google Workspace data — knowledge.workspace.google.com, checked