Let Google Workspace groups grant admin access
Site settings → Access names a group for each of admin, editor and viewer (migration 047). Someone in one who signs in with Google gets a Google-only account with their highest group's role, and the role follows the groups: at every sign-in, hourly while signed in, and on Panel → Google groups → Re-sync now. Out of every group, the account is disabled and signed out until they're back in one. Group accounts' roles are locked in the Panel; a superadmin's Disable sticks. Superadmins and admin-cli accounts are never changed. If Google can't be asked, sign-ins are refused but the hourly check leaves accounts alone. Panel → Check their groups tests an email. Lookups use the service account through the Directory API as GOOGLE_DIRECTORY_AS. Setup: docs/google-sign-in.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d7835dd5d4
commit
80877a4659
13 changed files with 563 additions and 36 deletions
|
|
@ -82,7 +82,9 @@ For the service account to send as a Workspace user:
|
|||
1. Google Admin console → Security → Access and data control → API
|
||||
controls → **Manage domain wide delegation** → Add new.
|
||||
2. Client ID: the service account's Client ID from step 1.
|
||||
OAuth scopes: `https://www.googleapis.com/auth/gmail.send`
|
||||
OAuth scopes: `https://www.googleapis.com/auth/gmail.send` (and,
|
||||
for access groups, `https://www.googleapis.com/auth/admin.directory.group.member.readonly`,
|
||||
comma separated: `docs/google-sign-in.md`)
|
||||
3. `GOOGLE_MAIL_FROM` is the address it sends as. It must be a
|
||||
**user** in the Workspace, one that signs in and has Gmail: not a
|
||||
group (eg. `webb-admin@`, even mail-enabled), not an alias. The
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue