Getting expression error - " User does not have sufficient privileges to perform requested action"
I have one group when we add a user to that group getting the above error.and the same user when we add in another group not getting the error.
and this error only occurs in higher environments, the same functionality works fine in lower environments.
Checked group security, and properties and it's the same as the lower environment.
Discussion posts and replies are publicly visible
we have tried with this function also and its throwing the same error
What you are trying to achieve is to get the groups of a user. A user can be in multiple groups which can be found in a user on the admin console-
The error you sent occurs when your user E is in more than one group and one of such groups has a restricted privacy policy. Try to look for that group and when you change it, it should work.
Additionally double-check following:
#1. Group Type- are you using custom group type which is governing the visibility of the group. Custom groups are the groups created by Administrators with custom Membership and Viewing policies.
#2. Check the group security.
yogeshc did you got any solution for this, we are also facing similar issue
Geetha Srikakolapu
we removed the function getgroupsformembersuser and now we are using groupsForUser function.