From 6b1c30b2cdc01a717dfa898a9e1be004a726b48d Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Tue, 30 Jul 2024 02:33:52 +0100 Subject: Update endpoint used to fetch all users --- arthur/apis/grafana/teams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arthur/apis/grafana/teams.py') 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() -- cgit v1.2.3