Registry / auth-security / allianceauth-securegroups

allianceauth-securegroups

JSON →
library0.10.1pypypiunverified

Extends Alliance Auth's group management by adding automatic filtering capabilities. Version 0.10.1, released under an active development cycle. Works by leveraging any module that provides a filter, allowing admins to define secure groups that automatically add/remove users based on conditions.

pip install allianceauth-securegroups
INSTALL
IMPORT
SIG · ALLIANCEAUTH-SECUR
A
allianceauth-securegroups
auth-securitypythonv0.10.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SecureGroupAdminMixin
from securegroups.admin import SecureGroupAdminMixin
Used to extend admin classes with Secure Groups functionality
get_secure_groups_for_user
from securegroups.utils import get_secure_groups_for_user
Utility function to retrieve secure groups for a given user

Basic usage to check secure groups for a user. Requires a running Alliance Auth project with secure groups configured.

import os import django os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myauth.settings') django.setup() from allianceauth.authentication.models import User from securegroups.models import SecureGroup # Ensure at least one secure group exists (run migrations first) user = User.objects.first() if user: groups = SecureGroup.objects.filter(members=user) print(f"User {user} has {groups.count()} secure groups")
Debug
Known issues
breakingIn version 0.10.0, the model 'SecureGroup' was moved from 'securegroups.models' to 'securegroups.models' (no change, but internal restructuring may affect custom filters). Ensure your custom filters import from the correct location.
fix
Update any custom filter imports to use the new module paths if needed. Refer to the changelog for details.
affects: >=0.10.0
deprecatedThe 'filter' setting key 'allianceauth-securegroups' is deprecated in favor of 'SECUREGROUPS_FILTERS' in the Django settings.
fix
Rename the setting key to 'SECUREGROUPS_FILTERS'.
affects: >=0.9.0
gotchaSecure Groups require the 'allianceauth' app to be properly configured with authentication modules. Without at least one auth module enabled (e.g., EveOnline), no filters will work.
fix
Enable at least one authentication module in Alliance Auth before using Secure Groups.
affects: all
Upgrade
Version history
0.10.1latest on PyPI · released Apr 27, 2026
Audit
Dependencies
allianceauthrequiredPrimary framework that Secure Groups extends
djangorequiredAlliance Auth is a Django application
Agent activity
44 hits · last 30 days
node
34
Perplexity
1
OpenAI (training)
1
Resources
allianceauth-securegroups — pip install allianceauth-securegroups · libregistry