Associate object to (list of) user role(s) and retrieve in MF if object has association to $CurrentUser/Role

0
I'm building a FAQ module where you can associate a FAQ section to one or more system roles. As I cannot set visibility in the modeler itself, I have to do this on microflow retrieve level. However I cannot achieve to retrieve only the sections that have at least one association to a system user role that the current user also owns.  So who can help me out to do this?
asked
3 answers
3

Hi Sander,

I might not understand your question complety but cant you use a xpath on the microflow retrieve of the FAQ section something simular to this:

[UserManagement.FAQ_UserRole/System.UserRole/System.UserRoles = '[%CurrentUser%]']

This retrieves the FAQ section which have a user role that the current user also has.

answered
1
[MyFirstModule.Section_UserRole/System.UserRole/System.UserRoles = $currentUser]

 

answered
0

To @Rom and @Maarten, thanks for your identical suggestions. I completely forgot the step from UserRole to UserRoles. After that, you can indeed relate it to $currentUser. Thanks big time!

answered