From 145feec82453e50b4802cd4406610360367fb147 Mon Sep 17 00:00:00 2001 From: Emmanuel Ormancey <emmanuel.ormancey@cern.ch> Date: Thu, 14 Apr 2022 15:07:51 +0200 Subject: [PATCH] switched to precomputed endpoint --- notifications_routing/config.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/notifications_routing/config.py b/notifications_routing/config.py index 5a51884..d694f94 100644 --- a/notifications_routing/config.py +++ b/notifications_routing/config.py @@ -30,9 +30,7 @@ class Config: f"&client_secret={CERN_OIDC_CLIENT_SECRET}&audience=authorization-service-api", ) CERN_GROUP_URL = os.getenv("CERN_GROUP_URL", "https://authorization-service-api.web.cern.ch/api/v1.0/Group") - CERN_GROUP_QUERY = os.getenv( - "CERN_GROUP_QUERY", "memberidentities?field=upn&field=primaryAccountEmail&recursive=true" - ) + CERN_GROUP_QUERY = os.getenv("CERN_GROUP_QUERY", "memberidentities/precomputed?field=upn&field=primaryAccountEmail") # DB SQLALCHEMY_DATABASE_URI = ("postgresql+psycopg2://{user}:{password}@{host}:{port}/{database}").format( -- GitLab