aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-07-30 02:33:52 +0100
committerGravatar Joe Banks <[email protected]>2024-07-30 02:33:52 +0100
commit6b1c30b2cdc01a717dfa898a9e1be004a726b48d (patch)
tree209585e0836028d27da1163c408653b32a54ed8b
parentUpdate filters in LDAP and GitHub Grafana team syncers (diff)
Update endpoint used to fetch all users
-rw-r--r--arthur/apis/grafana/teams.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/arthur/apis/grafana/teams.py b/arthur/apis/grafana/teams.py
index cea2d5f..c058108 100644
--- a/arthur/apis/grafana/teams.py
+++ b/arthur/apis/grafana/teams.py
@@ -49,7 +49,7 @@ async def remove_user_from_team(
async def get_all_users(session: aiohttp.ClientSession) -> list[dict[str, str]]:
"""Get all Grafana users."""
- endpoint = CONFIG.grafana_url + "/api/org/users/lookup"
+ endpoint = CONFIG.grafana_url + "/api/org/users"
async with session.get(endpoint, headers=AUTH_HEADER) as response:
response.raise_for_status()
return await response.json()