Get Users List

  • 24 July 2014
  • 1 reply
  • 2 views

Badge +3

Hi,

I'm developing in K2 Blackpearl for Sharepoint 2013.

I have AD system and I want to have a smartobject that lists the users and his roles. This has to have a method to get all users by Role.
As I can understood, the roles information is stored on K2 Databases. Is that correct? If so, the best way is to create a compositive smartobject?

Thank you,
Óscar Gomes


1 reply

Badge +8

Hello Oscar,


 


You could create a composite SmartObject if you really needed, however the AD user names are also stored in the location where you get the Role definitions.


 


Go to K2 designer and create a test smartobject.  Under the explorer look for URM Service and see what's available under there.  I dragged the User methods on to the canvas and if I executed the Get Users method, with the Lable (required) as K2...it gave me quite a bit of data.  


 


If you needed a composite off of this, I would tie the URM Name field to AD Username.


17190i63C39E4FC16039E4.png

Reply