# django-guardian/django-guardian

Per object permissions for Django

Repository: https://github.com/django-guardian/django-guardian
Canonical: https://ross.abutalabs.com/products/django-guardian
Homepage: https://django-guardian.readthedocs.io/
Language: Python
License: NOASSERTION
License Family: other
Last push: 2026-07-30T03:53:44+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 99, longevity 100
- inputs: {"age_days": 5934, "days_push": 34, "days_rel": 7, "gap_med": 1, "n_releases_24m": 24}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3910, forks 593 (observed 2026-08-28T04:08:28.848749+00:00)

## What it is
django-guardian is a Python library that implements per-object (row-level) permissions on top of Django's built-in authorization backend. It lets developers assign and check permissions for individual model instances for users and groups, with admin integration.

## Use cases
- assign permissions to a specific object for a user in Django
- implement row-level access control in a Django app
- check if a user can edit a particular record
- manage per-object permissions for groups in Django admin
- restrict users to only the records they own or are shared with them

## When to choose
- you need object-level or row-level permissions beyond Django's model-wide permissions
- you want a mature, widely-used Django authorization extension with admin integration

## When to avoid
- you only need model-level or global permissions (Django's built-in auth suffices)
- you are not using Django
- you need complex policy-based access control like ABAC/ReBAC, where a dedicated authorization service may fit better

## Facets
- artifact type: library
- maturity: stable
- function: authorization, auth
- domain: web-development, security, backend
- platform: python
- tags: django, object-level-permissions, row-level-security, access-control

## Member repositories
- django-guardian/django-guardian (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:28.848749+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:25:05.030863+00:00, confidence not recorded.
  - readme: https://github.com/django-guardian/django-guardian (fetched 2026-08-28T04:08:28.848749+00:00, sha 74382244a600)
  - registry_pypi: https://pypi.org/pypi/django-guardian/json (fetched 2026-08-29T09:19:28.946482+00:00, sha 7aba60de7b0e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
