Skip to content

Commit

Permalink
Add max paramter to membership list
Browse files Browse the repository at this point in the history
By default, keycloak has:

Query param max: Maximum results size (defaults to 100)
  • Loading branch information
Mark-Powers committed May 1, 2024
1 parent 707c10a commit e2cf481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/keycloak_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def get_project_members(self, charge_code):
url=keycloakproject._client.get_full_url(
keycloakproject.get_path("collection", realm=self.realm_name)
)
+ "/{id}/members".format(id=group["id"]),
+ "/{id}/members?max=9999".format(id=group["id"]),
)
return [m["username"] for m in members]

Expand Down

0 comments on commit e2cf481

Please sign in to comment.