Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isUserMemberOf(), getGroupMembershipForUser() and getUsersForGroup() seem not working? #237

Open
martin0258 opened this issue Mar 4, 2022 · 1 comment

Comments

@martin0258
Copy link

Actual result

I have 1 user belonging to 1 group. However, when calling isUserMemberOf with the user and the group, it returned false. When calling getGroupMembershipForUser with the user, it returned empty (i.e., no groups membership). When calling getUsersForGroup with the group, it also returned empty (i.e., no users).

Expected result

  1. isUserMemberOf should return true.
  2. getGroupMembershipForUser should return the group.
  3. getUsersForGroup should return the user.

Discussion

I'm not sure if it is a bug. I found someone indicated that the "member" attribute does not include members for primary group membership, and we should use primaryGroupToken and primaryGroupId to check the membership.

@ITTV-tools
Copy link

yes, same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants