Skip to content

Move Workspace SSO members into the GitHub SSO OU - #267

Merged
dend merged 4 commits into
mainfrom
sambhav/workspace-sso-org-unit
Dec 1, 2026
Merged

dend merged 4 commits into
mainfrom
sambhav/workspace-sso-org-unit

Conversation

@sambhav

@sambhav sambhav commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Moves Pulumi-managed members with the Workspace SSO role into /Model Context Protocol/GitHub SSO. A Workspace admin owns that OU and assigns the Google SAML profile to it in the Admin console. Widening the pilot then just means changing users.ts.

  • Only Workspace SSO members have orgUnitPath managed. Every other user's OU stays with admins, as today.
  • The OU and the profile assignment stay manual. Removing the assignment is the rollback, and it needs no deploy.
  • Members with existingGWSUser aren't managed by Pulumi, so the deploy logs a warning to move them by hand.
  • Removing the role doesn't move the account back. Pulumi stops managing its OU, and the account can't sign in until an admin moves it out. This is documented in the README.

Effect on deploy

Moves sambhav@ (the only Workspace SSO member) into the OU. Nothing else changes. The OU must already exist at that path, or the user update fails.

Verification

  • scripts/validate-config.ts: all references valid. scripts/test-config.ts: 98 passed. Prettier passes.
  • Typecheck passes in CI. The Pulumi preview is skipped on PRs (no deploy secrets in the preview environment), so the effect was checked against users.ts instead:
    • 46 provisioned Google users, 35 of them managed by Pulumi.
    • Only sambhav has the Workspace SSO role, so only that account's orgUnitPath is managed and changed. For the other 34, the input is unchanged and orgUnitPath is still in ignoreChanges, so there's no diff. The 11 existingGWSUser accounts aren't Pulumi resources, and none has the role.
    • org_unit_path isn't ForceNew in the provider (no user field is), so the move is an in-place update, not a replacement.

🤖 Generated with Claude Code

Create Model Context Protocol/Workspace SSO and keep Pulumi-managed
members with the Workspace SSO role in it, so the Google SAML profile can
be assigned to one OU. Other users' OU stays with admins. Members with
existingGWSUser are not managed, so the deploy warns to move them by hand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sambhav
sambhav requested a review from a team as a code owner December 1, 2026 00:49
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pulumi now only moves Workspace SSO members into the OU by path, so the
OU created in the Admin console doesn't need to be imported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sambhav sambhav changed the title Manage the Workspace SSO organizational unit Move Workspace SSO members into the GitHub SSO OU Dec 1, 2026
@sambhav
sambhav requested a review from dend December 1, 2026 01:08
@dend
dend merged commit 8ad58ef into main Dec 1, 2026
5 checks passed
@dend
dend deleted the sambhav/workspace-sso-org-unit branch December 1, 2026 01:11
dend added a commit that referenced this pull request Dec 1, 2026
The deploy for #267 failed with INVALID_OU_ID because the OU it moves Workspace SSO members into doesn't exist. Create it here so the deploy doesn't depend on a manual step.

This branch was successfully deployed

1 active deployment
preview — 71beb608 Deployed Dec 1, 2026 by sambhav via Preview Changes #471
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants