Skip to content
Snippets Groups Projects
Commit 69e6af9e authored by Jörn Künsemöller's avatar Jörn Künsemöller
Browse files

TMSS-1160: increase pagination limit when fetching users from keycloak

parent 4ba21a05
No related branches found
No related tags found
1 merge request!724TMSS-1160: change default config to point to production Keycloak
......@@ -116,7 +116,7 @@ def get_project_persons(include_projects: tuple = None):
return project_persons_map
@cachetools.func.ttl_cache(ttl=600)
@cachetools.func.ttl_cache(ttl=6000)
def get_user_mapping():
"""
returns a mapping of both the string ('Project, Tobitha') or LDAP ('cn=to_project,ou=Users,o=lofartest,c=eu')
......@@ -127,7 +127,7 @@ def get_user_mapping():
"""
user_map = {}
with KeycloakAdminAPISession() as ksession:
users = ksession.get(url='%s/users/' % KEYCLOAK_API_BASE_URL)
users = ksession.get(url='%s/users/?max=99999' % KEYCLOAK_API_BASE_URL)
for user in users:
if 'attributes' in user:
for ldap_dn in user['attributes'].get('LDAP_ENTRY_DN', []):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment