I created a test user , he is part of LMS Engineers group
When I ran this query, it shows true. I am trying to hide a page or component based on this result. Any help is appreciated
a!isUserMemberOfGroup( username: "LMSTestUser", groups: {"LMS Managing Director","LMS Managers"}, matchAllGroups:true )
Discussion posts and replies are publicly visible
Are you trying to only show the page if the user is part of these groups?
yes
Perhaps you need to set matchAllGroups to false if you only want to check if the user is part of one of the groups vs the user having to be in both groups.