User does not have sufficient privileges to perform requested action

Certified Senior Developer

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

Parents
  • 0
    Certified Senior Developer

    we are using getgroupsformembersuser function.

    Scenario : Let's assume we have 2 groups

    group A- User X , User Y

    group B - User E, User F

    getgroupsformembersuse(username: user X) is working as excepted 
    but not for getgroupsformembersuse(username: user E) and is throwing error - " The user Incorrect privileges to get groups for user. [User Context: user E] does not have sufficient privileges to perform the requested action ".

    privacy settings for group A and B has same.
    and visibillity of both groups also set to public.

  • 0
    Certified Lead Developer
    in reply to yogeshc

    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.

Reply Children
No Data