Skip to content

RFC: SCIM group provisioning → SAML IdP role/attribute mapping #692

Closed

Description

@lakhansamani

Context

Two features now exist independently:

  • SCIM 2.0 (internal/http_handlers/scim.go) — provisions Users into Authorizer. Groups are explicitly out of scope today (see the code comment: "SCIM Groups → org-namespaced FGA roles is deferred").
  • SAML 2.0 Identity Provider (internal/http_handlers/saml_idp.go, merged in feat(saml): add SAML 2.0 Identity Provider role #691) — Authorizer issues signed assertions to downstream SPs, with attribute mapping from the Authorizer user profile.

The gap

There's no bridge between the two: a group/role assigned to a user via SCIM (once Groups exist) has no path into the attributes/roles asserted on the SAML side when that same user authenticates to a downstream SP through Authorizer's SAML IdP. For an enterprise customer provisioning users+groups via SCIM from Okta/Entra and also using Authorizer as a SAML IdP for SAML-only apps (Zendesk, Notion, Tableau), group membership currently can't flow through — the downstream SP would need a separate, manual role-assignment step outside of the SCIM-driven directory sync.

Scope (draft, needs refinement)

  1. Implement SCIM Groups endpoints (/scim/v2/Groups) — currently entirely absent.
  2. Map SCIM group membership to the existing OpenFGA-backed org-namespaced roles (the deferred design already referenced in scim.go's comment).
  3. Extend the SAML IdP's attribute-mapping (saml_idp.go) to optionally emit group/role membership as a SAML attribute (e.g. groups or a configurable attribute name), so a downstream SP can consume it directly from the assertion.

Related issues

Filed as a follow-up from reviewing what's implemented vs. pending after the 2.4.0-rc.3 release (SAML IdP + MFA/passkey rework).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions