---
title: "django-scim2 | pypx"
description: "A partial implementation of the SCIM 2.0 provider specification for use with Django."
canonical_url: "https://pypx.app/packages/django-scim2"
meta:
  "og:description": "A partial implementation of the SCIM 2.0 provider specification for use with Django."
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_django-scim2%2Cversion_0.24.0%2Csummary_A%2Bpartial%2Bimplementation%2Bof%2Bthe%2BSCIM%2B2.0%2Bprovider%2Bspecification%2Bfor%2Buse%2Bwith%2BDjango.%2Clicense_MIT%2BLicense%2Cp_Ii9wYWNrYWdlcy9kamFuZ28tc2NpbTIi%2Cs_97ixWTq0p4iqcE7P.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "django-scim2 0.24.0"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_django-scim2%2Cversion_0.24.0%2Csummary_A%2Bpartial%2Bimplementation%2Bof%2Bthe%2BSCIM%2B2.0%2Bprovider%2Bspecification%2Bfor%2Buse%2Bwith%2BDjango.%2Clicense_MIT%2BLicense%2Cp_Ii9wYWNrYWdlcy9kamFuZ28tc2NpbTIi%2Cs_97ixWTq0p4iqcE7P.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **django-scim2**

v0.24.0

A partial implementation of the SCIM 2.0 provider specification for use with Django.

31 KB Python 3.10+ py3-none-anyMIT License3 deps

[** Diff **](https://pypx.app/packages/django-scim2/diff)

`$ uv add django-scim2`

# django-scim2

[![Documentation Status](https://readthedocs.org/projects/django-scim2/badge/)](https://django-scim2.readthedocs.io/)

This is a provider-side implementation of the SCIM 2.0 \[1]\_ specification for use in Django.

Note that currently the only supported database is Postgres.

## Installation

Install with pip:

$ pip install django-scim2

Then add the django\_scim app to INSTALLED\_APPS in your Django's settings:

```
INSTALLED_APPS = (
    ...
    'django_scim',
)
```

By default, request.user.is\_anonymous() is checked to determine if the SCIM request should be allowed or denied.

If you have specific authentication needs, look into overriding the default "is authenticated predicate" (i.e. see GET\_IS\_AUTHENTICATED\_PREDICATE for details) or subclassing the middleware that performs the check (AUTH\_CHECK\_MIDDLEWARE).

Add the necessary url patterns to your root urls.py file. Please note that the namespace is mandatory and must be named `scim`::

urlpatterns = \[ ... path('scim/v2/', include('django\_scim.urls')), ]

Finally, add settings appropriate for you app to your settings.py file:

```
SCIM_SERVICE_PROVIDER = {
    'NETLOC': 'localhost',
    'AUTHENTICATION_SCHEMES': [
        {
            'type': 'oauth2',
            'name': 'OAuth 2',
            'description': 'Oauth 2 implemented with bearer token',
        },
    ],
}
```

Other SCIM settings can be provided but those listed above are required.

## Demo App

The demo folder has a small Django project that uses django-scim2. Use it as a working example, alongside the settings above.

## PyPI

https://pypi.python.org/pypi/django-scim2

## Source

https://github.com/15five/django-scim2

## Documentation

https://django-scim2.readthedocs.io/

## Development

This project uses Poetry to manage dependencies, etc. Thus to install the necessary tools when developing, run::

poetry install

## Tests

https://github.com/15five/django-scim2/actions

Tests are typically run locally with `tox` (https://tox.wiki/). Tox will test all supported versions of Python and Django::

tox

To run the test suite with a single version of Python (the version you created the virtualenv with), run::

poetry run pytest tests/

## Coverage

https://coveralls.io/github/15five/django-scim2

To run tests with coverage:

```
tox -e coverage
```

## License

This library is released under the terms of the **MIT license**. Full details in LICENSE.txt file.

## Extensibility

This library was forked and developed to be highly extensible. A number of adapters can be defined to control what different endpoints do to your resources. Please see the documentation for more details.

PLEASE NOTE: This app does not implement authorization and authentication. Such tasks are left for other apps such as `Django OAuth Toolkit`\_ to implement.

## Development Speed

Since this project is relatively stable, time is only dedicated to it on Fridays. Thus if you issue a PR, bug, etc, please note that it may take a week before we get back to you. Thanks you for your patience.

## Credits

This project was forked from https://bitbucket.org/atlassian/django\_scim

## **Details **

<dl>

<dt>Version</dt>
<dd>0.24.0</dd>

<dt>License</dt>
<dd>MIT License</dd>

<dt>Python</dt>
<dd>&gt;=3.10</dd>

<dt>Maintainer</dt>
<dd>Paul Logston</dd></dl>

## **Links**

- [Documentation](https://django-scim2.readthedocs.io/en/stable/)
- [Homepage](https://pypi.org/project/django-scim2/)
- [Repository](https://github.com/15five/django-scim2)

## **Release Cadence **

**4**

releases in the past year

avg 48 days between releases

## **Maintainers **

- Paul Logston · [paul@15five.com](mailto:paul@15five.com)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/django-scim2#webpage","@type":"WebPage","description":"A partial implementation of the SCIM 2.0 provider specification for use with Django.","name":"django-scim2","url":"https://pypx.app/packages/django-scim2","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/django-scim2"]}]},{"@id":"https://pypx.app/packages/django-scim2#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"A partial implementation of the SCIM 2.0 provider specification for use with Django.","license":"MIT License","name":"django-scim2","softwareVersion":"0.24.0"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
