Skip to content

Commit

Permalink
fix: increase helsinki azure AD group listing size
Browse files Browse the repository at this point in the history
Microsoft Graph memberOf API defaults to page size of 100. Increase it
to 999 like it is in helsinki-tunnistus-plugin as we have users who have
100+ groups.

Refs: HP-2432
  • Loading branch information
voneiden committed May 13, 2024
1 parent d1c8ab6 commit a594c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth_backends/helsinki_azure_ad.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class HelsinkiAzureADTenantOAuth2(AzureADV2TenantOAuth2):
name_logged_in_to = pgettext('logged in to []', 'Azure AD')
name_logout_from = pgettext('log out from []', 'Azure AD')
name_goto = pgettext('go to []', 'Azure AD')
USER_DATA_URL = 'https://graph.microsoft.com/v1.0/me/memberOf?$select=id,displayName,securityEnabled'
USER_DATA_URL = 'https://graph.microsoft.com/v1.0/me/memberOf?$select=id,displayName,securityEnabled&$top=999'

@property
@lru_cache()
Expand Down

0 comments on commit a594c7c

Please sign in to comment.