How to show only users with a particular role in the reference selector dropdown?
Let’s say, I have a “Project” entity, and I want to assign users with the role ‘developer’ to it. So I created an “Assignment” entity, associated it with “Project” and “Account” entities. So now I can create a new object of “Assignment” entity, and in the popup, I can select the developer, and select the project as reference selectors. The problem is, that I have users with different roles, not only developers in the app. How can I show in the Assignment popup, in the accounts dropdown, only users with user role “developer”?
In the reference selector you can use with X-path constrain
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 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.