Skip to main content

scim2-server

A Python library that serves the SCIM protocol over any storage, built upon scim2-models, following the RFC7643 and RFC7644 specifications. It validates the requests, applies them to the resources and builds the responses. The application only reads and writes the resources.

It comes with an in-memory storage, WSGI and ASGI applications with no dependency, and a scim2-server command that serves a test server.

Who is it for?

scim2-server is for projects that need to:

  • serve a standalone SCIM server;
  • add SCIM to an existing application, with SCIM models that describe its data;
  • test a SCIM client against a working server, from the scim2-server command, a container, or the pytest-scim2-server fixture.

What's SCIM anyway?

SCIM stands for System for Cross-domain Identity Management, and it is a provisioning protocol. Provisioning is the action of managing a set of resources across different services, usually users and groups. SCIM is often used between Identity Providers and applications in completion of standards like OAuth2 and OpenID Connect. It allows users and groups creations, modifications and deletions to be synchronized between applications.

Features

  • Resources: creation, read, replacement, PATCH and deletion
  • Search: filters, sorting, paging and attribute selection, on a resource type or at the root
  • Bulk requests: with bulkId references and failOnErrors
  • ETags: conditional requests and protection against concurrent writes
  • Discovery: ServiceProviderConfig, ResourceTypes and Schemas
  • Storages: an interface to implement, an in-memory storage, and a test suite that checks a storage
  • Sync & Async: a synchronous and an asynchronous handler, over the same rules
  • Multi-tenancy: one set of resources per URL prefix

Installation

pip install scim2-server

Usage

Serve a test server from the command line:

scim2-server --port 8080

Or build the WSGI application in Python:

from scim2_server.applications.wsgi import WSGIApplication
from scim2_server.memory import InMemoryStorage
from scim2_server.utils import load_default_provider

app = WSGIApplication(InMemoryStorage(), load_default_provider())

A container image is published on the GitHub container registry for each release:

docker run --publish 8080:8080 ghcr.io/python-scim/scim2-server --bearer-token secret

The server has been tested against a live Microsoft Entra system and a live Okta system.

Documentation

  • Overview introduces the parts of a SCIM server, from the description of the service to the test server.
  • How-to guides cover focused tasks, such as writing a storage or integrating a web framework.
  • Explanation covers the layers of the server, the writes of resources and the bulk requests.
  • Reference lists the public API and the options of the scim2-server command.

Contributing

The contribution page describes how to run the tests, the style checks and the documentation build.

scim2-server belongs in a collection of SCIM tools developed by Yaal Coop, with scim2-models, scim2-client, scim2-tester and scim2-cli.

Origins

Parts of this software were initially developed at CONTACT Software (GitHub) and subsequently made available under the Apache License Version 2.0.

Metadata

Release files for scim2-server 0.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scim2-server 0.7.1
File Size Uploaded
scim2_server-0.7.1.tar.gz 48.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scim2-server 0.7.1
File Interpreter ABI Platform
scim2_server-0.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 105.9 kB

Release files / scim2_server-0.7.1.tar.gz

Download URL scim2_server-0.7.1.tar.gz
Size 48.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c7a3271d307677a8ab7d912ba3b6e57a54c431a842a345982b17bdadcdabeac1
BLAKE2b-256 checksum
How to use checksums
0f1979b9c8ee822c3a149645fb090006259a253d731bd7635bf41412443089f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release files / scim2_server-0.7.1-py3-none-any.whl

Download URL scim2_server-0.7.1-py3-none-any.whl
Size 57.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f788d351b61a3c32c6c1a572f6d90123206616cab3945755f4278b2528c3fa48
BLAKE2b-256 checksum
How to use checksums
cacd4c30aee55cb2c3b7bd502e876ae26cec33d5e5c537d93b963ca671d3bb09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release history Release notifications | RSS feed

0.8.1

2 release files

0.8.0

2 release files

This release

0.7.1 This release

2 release files

0.7.0

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page