Skip to main content
February 5, 2024
Question

User does not have sufficient privileges to perform requested action

  • February 5, 2024
  • 15 replies
  • 0 views

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.

15 replies

stefanhelzle0001
Brainy
February 5, 2024

We need a bit more context.

February 5, 2024

added a comment for the detail context

konduruc733182
February 5, 2024

Hello [mention:0e1c3eb422644ea29b8410d42c320506:e9ed411860ed4f2ba0265705b8793d05] 

When are you seeing this Error Message.
How are the securities defined? Are we talking about object securities or Data securities as well?

harshitb6843
February 5, 2024

Could it be that you were added to the right group during your active session and hence it will take effect after you refresh or re-login? Did you try that?

February 5, 2024

yes tried refreshing but its not working

mathieud0001
February 5, 2024

Something that happens in higher environments that doesn't happen in lower environments could also be a user being set as an administrator (in a dev environment) vs a basic user (in a higher environment). Could also be that they are perhaps a member of the application administrator group in a lower environnent whereas they are not in that group in a higher environment.

February 5, 2024

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.

konduruc733182
February 5, 2024

Have you checked if the plugin is deployed in your higher environment?

getgroupsformembersus
harshitb6843
February 5, 2024

Additionally, there is a new function from Appian that can eliminate the need of this plugin - a!groupsForUser()