SCIM 2.0 (scim.ts)
Reference for SCIM 2.0 (RFC 7644) user provisioning — automated identity lifecycle management for Okta and Azure AD.
On this page
SveltyCMS provides a native implementation of the System for Cross-domain Identity Management (SCIM) 2.0 protocol (RFC 7644). This allows enterprise identity providers (IdPs) like Okta or Azure AD to automatically provision and manage users and groups within SveltyCMS.
⚡ Quick Reference
| Feature | HTTP Endpoint | Method | Permission Required |
|---|---|---|---|
| List Users | /api/scim/v2/Users |
GET |
manage:user |
| Get User | /api/scim/v2/Users/{id} |
GET |
manage:user |
| Create User | /api/scim/v2/Users |
POST |
manage:user |
| Update User | /api/scim/v2/Users/{id} |
PATCH |
manage:user |
| Delete User | /api/scim/v2/Users/{id} |
DELETE |
manage:user |
| Bulk Ops | /api/scim/v2/Bulk |
POST |
manage:user |
1. The Goal
Automate the user lifecycle (Joiners, Movers, Leavers) by allowing the enterprise IdP to be the source of truth, reducing manual administrative overhead and ensuring security compliance.
2. The Solution
Endpoint Configuration
The SCIM API is located at /api/scim/v2/. Most IdPs will require a SCIM Base URL and an API Token (generated via Tokens API).
Supported Attributes
SveltyCMS filters and maps SCIM standard attributes to its internal user model:
userName→usernameemails[type=work]→emailactive→statusdisplayName→metadata.fullName
3. The Mechanics
SCIM Compliance
The scim.ts handler implements complex filtering (e.g., filter=userName eq "john") and pagination according to the RFC 7644 specification.
Related Documents