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.5.0

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.5.0
File Size Uploaded
scim2_server-0.5.0.tar.gz 44.6 kB Details

Built distribution (wheel)

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

Total release size: 97.2 kB

Release files / scim2_server-0.5.0.tar.gz

Download URL scim2_server-0.5.0.tar.gz
Size 44.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9a4c1a5e175ec0bd7f1af194113a6d3e0dbda7cd603e5066a198f850bfe304f9
BLAKE2b-256 checksum
How to use checksums
976a809d2d7d46df8a162c87985195612a9ace2a20f24d53338ef421c7b26332
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.5.0-py3-none-any.whl

Download URL scim2_server-0.5.0-py3-none-any.whl
Size 52.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1aca0577af42872e86c8c98d4c58c1ba361431e538e467ecb28c385a7bbab38
BLAKE2b-256 checksum
How to use checksums
13e1f52bfc7ed1c76f5659dc1f23c09c5f31ccc8d79a0856e544e7641f1e0bda
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

0.6.1

2 release files

0.6.0

2 release files

This release

0.5.0 This release

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