I have the same desire, however whereever I add the XPath contrain (reference selector or subsequent page) nothing is selectable
I would like to display users with Supervisor role assigned.
[System.UserRoles = '[%UserRole_Supervisor%]']
tried other role also, same result.
only an empty contrain delivers data, too much for my taste, but at least something.
In the reference selector you can use with X-path constrain
In the reference selector you can use with X-path constraint
IF you also grant the user role the right to manage the other user roles.
There is as far as I know no easy way to only provide only read access to user roles of other accounts.
Most developer approaches I have seen is through setting up another 1_1 account entity with its own references and such, which is supposedly more secure (or at least further away), or some helper objects and do the setting in a microflow.
In the Selectable Objects tab of the reference selector, you can constrain the list of objects using XPath. I think that will work in this instance.
I found this post, cause im looking for a solution too.
But now there is a easy way: