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
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.
Actual result
I have 1 user belonging to 1 group. However, when calling
isUserMemberOfwith the user and the group, it returnedfalse. When callinggetGroupMembershipForUserwith the user, it returned empty (i.e., no groups membership). When callinggetUsersForGroupwith the group, it also returned empty (i.e., no users).Expected result
isUserMemberOfshould returntrue.getGroupMembershipForUsershould return the group.getUsersForGroupshould 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
primaryGroupTokenandprimaryGroupIdto check the membership.