Error 400: admin_policy_enforced
A Google Workspace administrator's policy doesn't let this app use the requested Google services. Only that administrator can allow it; for `org_internal`, check your project's user type.
What the error means
admin_policy_enforced: the Google account can't authorize one or more requested scopes because of its Google Workspace administrator's policies.[1] org_internal: the OAuth client belongs to a project that limits access to the Google accounts of one Google Cloud organization.[2] Google shows org_internal when someone outside the project's organization tries to sign in.[3]
Common causes
- The admin set a requested Google service to Restricted, and the app isn't trusted.[4]
- The admin set the app to Limited: it can only use unrestricted services.[5]
- The admin blocked the app: it can't access any Google data.[6]
- Your project's user type is Internal, and you sign in with an account outside that organization.[7]
How to fix it
org_internal: open Google Auth Platform → Audience. A project for accounts outside one organization needs the user type External.[8]admin_policy_enforced: ask your Workspace administrator to allow this OAuth client. Trusted apps can use all Google Workspace services, including restricted ones.[9]- Or connect with a Google account outside that organization that owns or manages the channel.
How Publit.Si handles it
Questions
Can I fix admin_policy_enforced myself?
Only if you are the Workspace administrator. Otherwise ask them to allow this OAuth client; test users and production mode don't change the policy.
Why org_internal with my own project?
The project's user type is Internal, which only accepts members of its organization. For other accounts it needs to be External.
Related
Sources
- [1] Google: OAuth 2.0 for Web Server Applications: https://developers.google.com/identity/protocols/oauth2/web-server, checked November 17, 2026
„The Google Account is unable to authorize one or more scopes requested due to the policies of their Google Workspace administrator.“
- [2] Google: OAuth 2.0 for Web Server Applications: https://developers.google.com/identity/protocols/oauth2/web-server, checked November 17, 2026
„The OAuth client ID in the request is part of a project limiting access to Google Accounts in a specific Google Cloud Organization.“
- [3] Google Cloud Help: Manage App Audience: https://support.google.com/cloud/answer/15549945?hl=en, checked November 17, 2026
„An org_internal authorization error is displayed when authorization is requested from users outside the Google Cloud project's parent.“
- [4] Google: Using OAuth 2.0 to Access Google APIs: https://developers.google.com/identity/protocols/oauth2, checked November 17, 2026
„If an admin set any of the services requested in your app's scopes to Restricted (the error is admin_policy_enforced).“
- [5] Google Workspace Admin Help: Control which apps access Google Workspace data: https://knowledge.workspace.google.com/admin/apps/control-which-apps-access-google-workspace-data?hl=en, checked November 17, 2026
„Limited—App can only access unrestricted services.“
- [6] Google Workspace Admin Help: Control which apps access Google Workspace data: https://knowledge.workspace.google.com/admin/apps/control-which-apps-access-google-workspace-data?hl=en, checked November 17, 2026
„Blocked–App can't access any Google data.“
- [7] Google Cloud Help: Manage App Audience: https://support.google.com/cloud/answer/15549945?hl=en, checked November 17, 2026
„Projects associated with a Google Cloud Organization can configure Internal users to limit authorization requests to members of the organization.“
- [8] Google Cloud Help: Manage App Audience: https://support.google.com/cloud/answer/15549945?hl=en, checked November 17, 2026
„Projects configured with a user type of External are available to any user with a Google Account.“
- [9] Google Workspace Admin Help: Control which apps access Google Workspace data: https://knowledge.workspace.google.com/admin/apps/control-which-apps-access-google-workspace-data?hl=en, checked November 17, 2026
„Trusted—App has access to all Google Workspace services (OAuth scopes), including restricted services.“
- [10] Publit.Si docs: Connect YouTube: publit.si/docs/platforms/youtube
- [11] Publit.Si docs: Troubleshooting: publit.si/docs/troubleshooting