You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
isUserMemberOf should return true.
getGroupMembershipForUser should return the group.
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.
The text was updated successfully, but these errors were encountered:
Actual result
I have 1 user belonging to 1 group. However, when calling
isUserMemberOf
with the user and the group, it returnedfalse
. When callinggetGroupMembershipForUser
with the user, it returned empty (i.e., no groups membership). When callinggetUsersForGroup
with the group, it also returned empty (i.e., no users).Expected result
isUserMemberOf
should returntrue
.getGroupMembershipForUser
should return the group.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
andprimaryGroupId
to check the membership.The text was updated successfully, but these errors were encountered: