Protocol, already handled
Users CRUD, discovery, RFC 7644 PATCH, list responses, and SCIM errors.
SCIM 2.0 · NESTJS · TYPESCRIPT
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/coreInstall from npm · bring your own persistence and auth
POST /scim/v2/Users
Content-Type: application/scim+json
{
"userName": "jensen@example.com",
"displayName": "Babs Jensen",
"active": true
}Location: /scim/v2/Users/42Content-Type: application/scim+jsonTHE DIVISION OF WORK
Users CRUD, discovery, RFC 7644 PATCH, list responses, and SCIM errors.
Map your domain model once. Translate filter trees into your database dialect.
Pagination limits, uniqueness checks, media types, and response metadata included.
SMALL INTEGRATION SURFACE
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 moduleimport { ScimModule } from '@nest-scim/core';
@Module({
imports: [
ScimModule.forRoot({
basePath: '/scim/v2',
userService: UserService,
userMapper: UserMapper,
auth: [ScimBearerGuard],
}),
],
})
export class AppModule {}FILTERING THAT RESPECTS YOUR STORE
userName eq "jensen@example.com"eq · login · valueWHERE 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
Mounted under the base path you choose. Discovery is available before an identity provider authenticates.
Endpoint reference| METHOD | PATH | OPERATION |
|---|---|---|
GET | /Users | List users · filter · pagination |
POST | /Users | Create 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 | /ServiceProviderConfig | Advertise provider capabilities |
GET | /Schemas | Publish the User schema |
READY TO CONNECT AN IDENTITY PROVIDER?