Error 400: admin_policy_enforced
Eine Richtlinie deiner Google-Workspace-Administration erlaubt dieser App die angefragten Google-Dienste nicht. Nur die Administration kann sie freigeben; bei `org_internal` prüfst du den Nutzertyp deines Projekts.
Was der Fehler bedeutet
admin_policy_enforced: Das Google-Konto darf einen oder mehrere angefragte Scopes nicht freigeben, weil die Richtlinien seiner Google-Workspace-Administration es verbieten.[1] org_internal: Der OAuth-Client gehört zu einem Projekt, das den Zugriff auf Google-Konten einer einzigen Google-Cloud-Organisation beschränkt.[2] Google zeigt org_internal, wenn sich jemand außerhalb der Organisation des Projekts anmelden will.[3]
Häufige Ursachen
- Die Administration hat einen angefragten Google-Dienst auf Restricted gestellt, und die App ist nicht vertrauenswürdig eingestuft.[4]
- Die Administration hat die App auf Limited gestellt: Sie darf nur uneingeschränkte Dienste nutzen.[5]
- Die Administration hat die App blockiert: Sie bekommt keinerlei Google-Daten.[6]
- Der Nutzertyp deines Projekts ist Internal, und du meldest dich mit einem Konto außerhalb dieser Organisation an.[7]
So behebst du ihn
org_internal: Öffne Google Auth Platform → Audience. Ein Projekt für Konten außerhalb einer Organisation braucht den Nutzertyp External.[8]admin_policy_enforced: Bitte deine Workspace-Administration, diesen OAuth-Client zu erlauben. Als Trusted eingestufte Apps dürfen alle Google-Workspace-Dienste nutzen, auch eingeschränkte.[9]- Oder verbinde mit einem Google-Konto außerhalb dieser Organisation, dem der Kanal gehört oder das ihn verwaltet.
So geht Publit.Si damit um
Fragen
Kann ich admin_policy_enforced selbst beheben?
Nur wenn du selbst die Workspace-Administration bist. Sonst bitte sie, diesen OAuth-Client zu erlauben; Testnutzer und Produktionsmodus ändern an der Richtlinie nichts.
Warum org_internal bei meinem eigenen Projekt?
Der Nutzertyp des Projekts ist Internal und lässt nur Mitglieder seiner Organisation zu. Für andere Konten muss er External sein.
Passend dazu
Quellen
- [1] Google: OAuth 2.0 for Web Server Applications: https://developers.google.com/identity/protocols/oauth2/web-server, geprüft am 17. November 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, geprüft am 17. November 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, geprüft am 17. November 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, geprüft am 17. November 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, geprüft am 17. November 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, geprüft am 17. November 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, geprüft am 17. November 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, geprüft am 17. November 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, geprüft am 17. November 2026
„Trusted—App has access to all Google Workspace services (OAuth scopes), including restricted services.“
- [10] Publit.Si-Doku: YouTube verbinden: publit.si/de/docs/platforms/youtube
- [11] Publit.Si-Doku: Probleme lösen: publit.si/de/docs/troubleshooting