Get users for roles

  • 20 June 2013
  • 1 reply
  • 2 views

Badge

Hi

I need to find the users belonging to two different roles in a report. I have looked at the SmartObject UMUser which has a function "Get Users For Roles", but I haven't been able to figure out the input to the function. Does anyone know how to use this, or is there a different way I can do this?


Thanks!


Best,
Kjartan


1 reply

Badge +8

It just needs a repeating XML structure. I used the following and it worked as expected:


<Roles><Role>Treasury</Role><Role>HR Employees</Role></Roles>

Reply