Separates individual users from shared organization accounts with ownership, membership, and invitations. Works with default or custom Django user models.
Overview
django-organizations adds user-managed multi-user groups to Django sites, whether those groups behave like social communities or billing-oriented account objects beyond a single login.
The Organization model anchors shared functionality such as subscriptions or projects. OrganizationUser links users to groups with per-organization roles and metadata. OrganizationOwner designates the user who controls the life of the group. Users can belong to and own more than one organization.
Invitation and registration flows ship with default backends and can be swapped through settings for custom messaging or auth stacks. Concrete models can be installed quickly; abstract bases allow fully custom tables when the app is used as a library rather than an installed application.
URL configuration typically mounts organization account routes plus an invitation backend. Utilities such as create_organization simplify bootstrapping membership and admin flags. The design stays agnostic about authentication, registration, and invitation delivery so projects plug in their preferred mechanisms.
Key features
- Organization and membership models
- Per-organization ownership
- Multiple orgs per user
- Invitation backends
- Works with custom user models
- Concrete or abstract model bases
- View and mixin helpers
- create_organization utility
Use cases
- Team account workspaces
- Shared subscription billing
- Multi-tenant group signup
- Social organization groups