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.6.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.6.1
File Size Uploaded
scim2_server-0.6.1.tar.gz 46.3 kB Details

Built distribution (wheel)

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

Total release size: 100.6 kB

Release files / scim2_server-0.6.1.tar.gz

Download URL scim2_server-0.6.1.tar.gz
Size 46.3 kB
Tags Source
SHA-256 checksum
How to use checksums
51373b2c40c763d728469ec4c44d9ec3538be26beec93a716640482e1a721cca
BLAKE2b-256 checksum
How to use checksums
ea9d4c42ad7b648b737ad1a96c288d96194a7d5f007d508b445bccc41fde6a85
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 5, 2026.

Transparency log

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

Download URL scim2_server-0.6.1-py3-none-any.whl
Size 54.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d462198d17358c711e994c513ed41059dd8214d5ea5a2e16c5179ff2870b541
BLAKE2b-256 checksum
How to use checksums
52dd0aeb43972e5ad0eb9c49963d2f9a4251dac7271f16e4fcaa002666a373d6
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 5, 2026.

Transparency log

Release history Release notifications | RSS feed

0.8.1

2 release files

0.8.0

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.2

2 release files

This release

0.6.1 This release

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