-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing groups #361
Comments
Have you looked at overriding the |
Thank you so much for the fast reply. |
Did you add the groups claim in Entra for the app registration? Also you can always override |
Well, i think i did add the groups claim in Entra for the app registration. |
Sorry, I don't have the time to help implement a custom solution. I believe the hook is available for you to do what you're looking for. |
I fully understand you don't have time for it. |
We use Microsoft Entra ID on microsoft azure.
We send all posisble group sin the token, but we keep missing a lot of groups. Some users have over 150 groups! We cannot figer out what to do for the group configuration to arrive completely.
This is the setting:
AUTH_ADFS = {
'AUDIENCE': client_id,
'CLIENT_ID': client_id,
'CLIENT_SECRET': client_secret,
'CLAIM_MAPPING': {'first_name': 'given_name',
'last_name': 'family_name',
'email': 'upn'},
'GROUPS_CLAIM': 'groups',
'MIRROR_GROUPS': True,
'USERNAME_CLAIM': 'upn',
'TENANT_ID': tenant_id,
'RELYING_PARTY_ID': client_id,
'LOGIN_EXEMPT_URLS': [
'^api',
],
}
In Entra ID:
in tokenconfiguration we have the groupclaim:
Securitygroups
Directory roles
All groups
Groups configured for applications
We believe everything is complete, but it turns out that a specific user who has 200 groups according to entra ID, only shows up with 100 groups in Django.
I cannot find something like a cutoff (groups run form a to z) but we are missing vital groups.
Can anyone explain me how we have to fix this, so that everything shows up?
The text was updated successfully, but these errors were encountered: