Nest SCIM

SCIM 2.0 · NESTJS · TYPESCRIPT

Provision users.
Skip the protocol plumbing.

Make your NestJS app a SCIM service. The library owns the endpoints and RFC behavior; your app owns its users, storage, and mapping.

$ npm install @nest-scim/core

Install from npm · bring your own persistence and auth

REQUEST FLOWPOST /scim/v2/Users201 Created
IDENTITY PROVIDER
POST /scim/v2/Users
Content-Type: application/scim+json

{
  "userName": "jensen@example.com",
  "displayName": "Babs Jensen",
  "active": true
}
SCIM MODULE✓
201resource created
Location: /scim/v2/Users/42Content-Type: application/scim+json
YOUR USER SERVICE
create(user)→id: "42"
PROTOCOL CONTRACTRFC 7644 §3.3

THE DIVISION OF WORK

One protocol. Two contracts.
Your domain stays in control.

01

Protocol, already handled

Users CRUD, discovery, RFC 7644 PATCH, list responses, and SCIM errors.

RFC 7644
02

Your storage stays yours

Map your domain model once. Translate filter trees into your database dialect.

TWO CONTRACTS
03

Built for real provisioning

Pagination limits, uniqueness checks, media types, and response metadata included.

SCIM 2.0

SMALL INTEGRATION SURFACE

Wire your service.
Map your model.

Register your persistence service and mapper once. The module mounts the SCIM routes and delegates each request through your existing Nest dependency graph.

Set up the module
app.module.tsTYPESCRIPT
import { ScimModule } from '@nest-scim/core';

@Module({
  imports: [
    ScimModule.forRoot({
      basePath: '/scim/v2',
      userService: UserService,
      userMapper: UserMapper,
      auth: [ScimBearerGuard],
    }),
  ],
})
export class AppModule {}
✓ Service + mapper are your only required contracts

FILTERING THAT RESPECTS YOUR STORE

Parse once. Query in your dialect.

How filtering works
WIRE FILTERuserName eq "jensen@example.com"
DOMAIN TREEeq · login · value
YOUR STOREWHERE login = ?

The library never loads every row to filter in memory. Your service receives a typed DomainFilter and returns a filter-scoped total.

THE ROUTES YOU GET

A complete User
provisioning surface.

Mounted under the base path you choose. Discovery is available before an identity provider authenticates.

Endpoint reference
METHODPATHOPERATION
GET/UsersList users · filter · pagination
POST/UsersCreate a user
GET/Users/{id}Read one user
PUT/Users/{id}Replace a user
PATCH/Users/{id}Apply ordered operations
DELETE/Users/{id}Remove a user
GET/ServiceProviderConfigAdvertise provider capabilities
GET/SchemasPublish the User schema

READY TO CONNECT AN IDENTITY PROVIDER?

Start with the guide.
Ship the protocol, not the plumbing.

SCIM 2.0 · RFC 7643 / 7644NESTJS 10 & 11 · NODE 20+