I had this problem recently and ended up using a workaround.
Given a user (e.g. currentUser), you can query the database for users with that name and which belong to a given group (e.g. Doctor). If you get a result then the user is in that group, if not then the user isn't in that group
This workaround may help until somebody gives a proper answer
Hello,according to the workaround, I can do in the retrieve objects activity module, but in my project, I have several Roles to discriminate at the beginning of the microflow in the decision module, then different Roles has different activities ,and I tried the workaround in Decision, an error occurred,
no viable alternative at input ‘[’,
the screenshot is shown as,
and I do not know how to solve it now.
Hi,
User role is a list as 1 user can have multiple roles , so you cannot traverse list attribute directly in decision.
what you can do is
1.retrieve list of roles by currentuser_roles association
2.add a filter list operation , and in that select name attribute and compar eit with doctor
see below