Skip to content

Commit

Permalink
Merge pull request #379 from WISVCH/fix/google-transative-groups
Browse files Browse the repository at this point in the history
Add parent to google groep transitive search
  • Loading branch information
robertdijk authored Nov 28, 2024
2 parents 5a28e12 + cde7c29 commit 33c1767
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ldb/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 33c1767

Please sign in to comment.