fn!getgroupsformemberuser giving error ": Incorrect privileges to get groups for user"

Hi,

We are using function "getgroupsformemberuser" like this:apply(fn!getgroupsformemberuser,<lastUpdatedUserId>).

This works fine in all environment except the one where we get error as:-

com.appiancorp.suiteapi.common.exceptions.AppianException: Incorrect privileges to get groups for user. [User Context: 

We get error when <lastUpdatedUserId> is not part of logged in user's group.

We checked that group security setting are same as in other environments

 

Please help.

 

Thanks,

Jayashri

  Discussion posts and replies are publicly visible

Parents Reply
  • Ideally this error comes when the user who is executing the rule do not have access to the group, as per your code you are iterating through list of users so the problem can come from any user with in the list. Since you are fetching all groups this can bring up Designers ,database Administrators systems groups if any one of the user is belong to any of those groups. If the user who is trying to execute the expression does not belong or have access to those groups this issue will come.

    If this is not the case at all then i think giving more details about code and error may help to find why it is giving this error
Children
No Data