From 84b3bae6d6b341b7b638aaca69d5d57e246ebf57 Mon Sep 17 00:00:00 2001 From: Todor Ivanov Date: Thu, 23 Feb 2023 18:55:59 +0100 Subject: [PATCH] Add a first level fix for missing iam_group type. --- src/python/WMCore/REST/Auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/WMCore/REST/Auth.py b/src/python/WMCore/REST/Auth.py index 3a6c5fe7b7..2d6434401a 100644 --- a/src/python/WMCore/REST/Auth.py +++ b/src/python/WMCore/REST/Auth.py @@ -53,7 +53,7 @@ def user_info_from_headers(key, verbose=False): val = str(val) if PY3 else str(val, "utf-8") user[hkname] = val if hk.startswith("cms-authz"): - user['roles'][hkname] = {'site': set(), 'group': set()} + user['roles'][hkname] = {'site': set(), 'group': set(), 'iam_group': set()} for r in headers[hk].split(): site_or_group, name = r.split(':') user['roles'][hkname][site_or_group].add(name)