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

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.2
File Size Uploaded
scim2_server-0.6.2.tar.gz 47.0 kB Details

Built distribution (wheel)

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

Total release size: 102.0 kB

Release files / scim2_server-0.6.2.tar.gz

Download URL scim2_server-0.6.2.tar.gz
Size 47.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ceac789203654323a47bea27fb4b81fe2d7e2a18b0ed34e58da5ae2fc0f07796
BLAKE2b-256 checksum
How to use checksums
5baa7af1da888fda928ca648b2d5f3196ba4a5d4f63bf582189c325ce3897223
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 6, 2026.

Transparency log

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

Download URL scim2_server-0.6.2-py3-none-any.whl
Size 55.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b356a0a6f6caa4e20342f9b564f40a3e1f18aba2d2311faee046f743aa51a39
BLAKE2b-256 checksum
How to use checksums
625bbc9982f7bb955cd23a41da8fefdba512605b4a3f2ed955b8f7ec2d630027
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 6, 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

This release

0.6.2 This release

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