Retrieve on account entity with role as a Xpath Constraint not working 

Dear All, Our project is to retrieve the account information of a specific user from an account entity with a specific role assigned to it, so we added the user role as an Xpath constraint, In this case, it retrieves all the accounts that do not work. I would appreciate if you could suggest what might be wrong with this
1 answers

I think you should use the not() operator:

[not(System.UserRoles = '[%UserRole_SuperAdmin%]')]

[not(System.UserRoles = '[%UserRole_RESTUser%]')]


When you are comparing using the '!+' operator the expression returns true when it finds an object which does match the statement.