Error with impersonate another user

#1

Hi,
we have created a user “NEW_USER_ID” and associated to it a particular “custom” group.

For test purpose, I did from the console:
User.impersonate('MY_USER_ID', 'NEW_USER_ID')

If I try to access to the ui application I receive the following error for the action
UIMetadata?action=init

{
“id” : “6821.216”,
“message” : “Invalid expression “((((member.id == _context.userName || meta.createdBy == _context.userName)))) || (((intersects(member.id, _context.memberIds) || intersects(meta.createdBy, _context.memberIds)))))”: missing ; before statement (#1)”,
“codes” : [ “NotClassified” ],
“cause” : {
“message” : “missing ; before statement (#1)”
}
}

How can I solve this issue?

Thanks,
Laura

#2

I found the solution, there was an error in actionConditions in the role.

Thanks,
Laura

closed #3