scim2-django
Serve a SCIM 2.0 server from a Django project, as RFC7643 and RFC7644 define it. It is built upon scim2-server and scim2-models. It stores the resources in the models of your project.
Features
- Storage in the models of your project, with filters, sorts and pages run in the database, on SQLite, PostgreSQL and MariaDB
manage.py checkchecks the mappings between SCIM attributes and model fields- The users and the groups of
django.contrib.authserved without any table, and a model beside them forexternalId,meta.lastModifiedand the attributes of your project - Resource endpoints:
POST,GET,PUT,PATCHandDELETE, for every resource type - Search:
GETandPOST /.search, per resource type and at the server root - Discovery endpoints:
/ServiceProviderConfig,/ResourceTypesand/Schemas - Bulk operations:
POST /Bulk, withbulkIdreferences,failOnErrors,maxOperationsandmaxPayloadSize /Me, once your project tells which resource belongs to the authenticated client- Conditional requests with ETags:
If-MatchandIf-None-Match - SCIM error payloads for every failure
- Several SCIM servers in one project, each with its own URL namespace
Example
# urls.py
from django.urls import path
from scim2_models import ResourceType, ScimProvider, User
from scim2_django import ScimSite
from scim2_django.storage import DjangoStorage, ResourceMapping
from accounts.models import Account
USERS = ResourceMapping(
User,
Account,
{
"id": "id",
"userName": "login",
"meta.created": "created_at",
"meta.lastModified": "updated_at",
},
version="revision",
)
def authenticate(request): ...
provider = ScimProvider.from_discovery(
USERS.schemas(), [ResourceType.from_resource(User)]
)
storage = DjangoStorage({"User": USERS}, provider)
site = ScimSite(storage, provider, authenticate=authenticate)
urlpatterns = [
path("scim/v2/", site.urls),
]
Installation
pip install scim2-django
Documentation
- Overview builds a SCIM server over the models of an existing project.
- How-to guides cover authentication, URLs, reverse proxies, request sizes and transactions.
- Reference lists the public API and the system checks.
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, alongside standards like OAuth2 and OpenID Connect. It synchronizes the creation, modification and deletion of users and groups between applications.
Getting help
Questions and bug reports go to the issue tracker.
Contributing
The contribution page describes how to run the tests, the style checks and the documentation build.
License
scim2-django is released under the Apache-2.0 license.
scim2-django belongs in a collection of SCIM tools developed by Yaal Coop, with scim2-models, scim2-client, scim2-server, scim2-tester and scim2-cli.
Metadata
Release files for scim2-django 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scim2_django-0.5.0.tar.gz | 43.8 kB | With provenance | Details for scim2_django-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scim2_django-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for scim2_django-0.5.0-py3-none-any.whl |
Total release size: 92.2 kB
Release files / scim2_django-0.5.0.tar.gz
| Download URL | scim2_django-0.5.0.tar.gz |
|---|---|
| Size | 43.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fddbac1d728b14e5fae92bf4b78c413365b68ae745ad928759c05be41d87a26
|
|
BLAKE2b-256 checksum How to use checksums |
da4b8516e6aa9cd96f0cad25f6a1fbea4fb8903cc4b7f8ec5aca5dd34a76b5c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / scim2_django-0.5.0-py3-none-any.whl
| Download URL | scim2_django-0.5.0-py3-none-any.whl |
|---|---|
| Size | 48.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a99761f5afff8955020d35c881381cc662363a823b1808a2741fa51d92d366b
|
|
BLAKE2b-256 checksum How to use checksums |
a3ad60c30b88a25007f0f19307801a403fda7419be4ebce958a9d02ec5505615
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logSecurity for scim2-django 0.5.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for scim2_django-0.5.0.tar.gz
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 Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.