Skip to content

feat: add SCIM 2.0 user provisioning (EE)#1306

Draft
brendan-kellam wants to merge 1 commit into
mainfrom
brendan/scim-user-provisioning
Draft

feat: add SCIM 2.0 user provisioning (EE)#1306
brendan-kellam wants to merge 1 commit into
mainfrom
brendan/scim-user-provisioning

Conversation

@brendan-kellam

Copy link
Copy Markdown
Contributor

Adds a SCIM 2.0 server (EE, gated by the new scim entitlement) so an identity provider (Okta, Entra) can provision and deprovision Sourcebot members.

Scope

  • /scim/v2 Users endpoints: discovery, list+filter, create, get, replace, PATCH (active toggle), delete. Groups deferred.
  • Deprovisioning soft-deactivates the membership (new UserToOrg.isActive): forces logout via sessionVersion and revokes API/OAuth tokens, but preserves the row so the IdP can reactivate.
  • Org-scoped ScimToken (bearer auth via withScimAuth); managed under Settings → Security.
  • JIT auto-join is suppressed once SCIM is enabled (IdP is the source of truth).

Note: the scim entitlement must be added to the lighthouse entitlements list and deployed before online licenses will grant it.

🤖 Generated with Claude Code

Adds a SCIM 2.0 server so an IdP (Okta, Entra) can provision, update, and
deprovision org members. Users-only scope; deprovisioning soft-deactivates the
membership (forces logout + revokes tokens) rather than deleting it, and JIT
auto-join is suppressed when SCIM is enabled.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 974ff0a2-81db-4783-b07e-c59ea020cd46

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch brendan/scim-user-provisioning

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant