diff --git a/src/authentic2_auth_saml/adapters.py b/src/authentic2_auth_saml/adapters.py index 63afffc3f..95573a83e 100644 --- a/src/authentic2_auth_saml/adapters.py +++ b/src/authentic2_auth_saml/adapters.py @@ -28,6 +28,7 @@ from mellon.adapters import DefaultAdapter, UserCreationError from mellon.utils import get_setting from authentic2 import utils +from authentic2.backends import get_user_queryset from authentic2.utils.evaluate import evaluate_condition from authentic2.a2_rbac.models import Role, OrganizationalUnit as OU from authentic2.a2_rbac.utils import get_default_ou @@ -276,3 +277,6 @@ class AuthenticAdapter(DefaultAdapter): def auth_login(self, request, user): utils.login(request, user, 'saml') + + def get_users_queryset(self, idp, saml_attributes): + return get_user_queryset()