How do I make a decision based off the users role in the system?

0
I have 2 roles I want to make a decision for, RSM/RCM and User. How do I retrieve the current logged in users role and use it in this expression? For ex: CurrentUser = "RSM/RCM".
asked
1 answers
0

Do a retrieve from database of the entity System.UserRole, Range = First, Xpath constraint is

[System.UserRoles = $currentUser][id='[%UserRole_RSM/RCM%]']

and verify if the result is not empty. If not empty, the current user has that role

answered