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
|
|
@ -122,6 +122,27 @@ export const siteSettings = {
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
legend: "Access (Google groups)",
|
||||
note: "Anyone in one of these Workspace groups can sign in to the admin with Google; their account is made at first sign-in, with the highest role their groups give. Their role follows the groups (checked at sign-in, hourly, and by Panel → Re-sync now); out of every group, the account is disabled. Superadmins and accounts made with admin-cli aren't affected. Needs GOOGLE_DIRECTORY_AS on the server (docs/google-sign-in.md).",
|
||||
fields: [
|
||||
{
|
||||
path: "access_group_admin",
|
||||
label: "Admins group",
|
||||
help: "Its members sign in as admins: edit and delete anything. eg. web-admins@nextgenerationofunity.org. Default: none.",
|
||||
},
|
||||
{
|
||||
path: "access_group_editor",
|
||||
label: "Editors group",
|
||||
help: "Its members sign in as editors: create and edit, not delete. eg. web-editors@nextgenerationofunity.org. Default: none.",
|
||||
},
|
||||
{
|
||||
path: "access_group_viewer",
|
||||
label: "Viewers group",
|
||||
help: "Its members sign in as viewers: read only. eg. web-viewers@nextgenerationofunity.org. Default: none.",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
legend: "Notices",
|
||||
fields: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue