From ff15ed9367f428d6e321f55b76d6edbed80d3bd0 Mon Sep 17 00:00:00 2001 From: Robert van Dijk Date: Thu, 28 Nov 2024 10:10:35 +0100 Subject: [PATCH 1/2] Add parent to google query --- ldb/google.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldb/google.py b/ldb/google.py index 6032582..de4ffd9 100644 --- a/ldb/google.py +++ b/ldb/google.py @@ -32,7 +32,7 @@ def search_transitive_groups(service, member, page_size): "query": ( "member_key_id == '{}' &&" " 'cloudidentity.googleapis.com/groups.discussion_forum' in labels" - .format(member) + " && parent == 'customers/C03nrg5fp'".format(member) ), "page_size": page_size, "page_token": next_page_token, From cde7c292925e6b1350221ab315609437789144e8 Mon Sep 17 00:00:00 2001 From: Robert van Dijk Date: Thu, 28 Nov 2024 10:10:45 +0100 Subject: [PATCH 2/2] Remove print --- ldb/google.py | 1 - 1 file changed, 1 deletion(-) diff --git a/ldb/google.py b/ldb/google.py index de4ffd9..3b9b8e5 100644 --- a/ldb/google.py +++ b/ldb/google.py @@ -86,7 +86,6 @@ def get_groups_by_user_key(userKey) -> list: transitive_groups = search_transitive_groups(service, userKey, 50) for group in transitive_groups: - print("group:", group) groups.append(group["groupKey"]["id"]) # Replace "@ch.tudelft.nl" from the group names