We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ba0dcb commit 6511c69Copy full SHA for 6511c69
1 file changed
arthur/apis/directory/keycloak.py
@@ -53,13 +53,13 @@ def all_github_ids() -> list[str]:
53
"""Fetch all GitHub IDs from Keycloak."""
54
client = create_client()
55
56
- users = client.get_users({"enabled": True, "search": "*"})
57
-
+ users = client.get_users()
58
github_ids = []
+
59
for user in users:
60
- for ident in user["federatedIdentities"]:
+ user_details = client.get_user(user["id"])
61
+ for ident in user_details["federatedIdentities"]:
62
if ident["identityProvider"] == "github":
- github_ids.append(ident["userId"])
63
- break
+ github_ids.append(ident["userId"]) # noqa: PERF401
64
65
return github_ids
0 commit comments