Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Perform recursive lookups for group members that are themselves groups #358

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eskilandreen
Copy link
Contributor

In Google groups it is possible to make groups members of other groups. If A is
a member of group G and group G is a member of group H, then A should also be
considered a member of group H.

This change will append any groups found when listing group members to the
array of groups to iterate through, so that eventually all top-level and nested
groups will be used to check membership for the user. It is not clear whether
cyclic group membership is permitted by Google but it is being checked for just
in case.

In Google groups it is possible to make groups members of other groups. If A is
a member of group G and group G is a member of group H, then A should also be
considered a member of group H.

This change will add append any groups found when listing group members to the
array of groups to iterate through, so that eventually all top-level and nested
groups will be used to check membership for the user. It is not clear whether
cyclic group membership is permitted by Google but it is being checked for just
in case.
@snomann
Copy link

snomann commented Mar 30, 2018

Why is this not merged?

@framillien
Copy link

Hello, looking around for groups handling, I found this MR also reworking this part: #500

Looks like this may fix this problem, with simplified code: groups are filtered by user email, server side (scheduled for 2.3).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

4 participants