Skip to main content

Hi

With the K2  Blackpearl API i want to get users from a K2 role.

Example my K2 role myRole contains toto and titi users.

 From "myRole" i want to get the list {"toto"; "titi"}.

Is it possible or just a dream ? I didn't found anything in the Class Library Reference.

Thank for your reply. 

It is possible, and you don't even have to write code!  Create a SmartObject and connect it to the User Role Manager Service.  Inside that is a service object called Users that has a GetRoleUsers method.  Pass that method the name of a role and it returns a list of the members.


David


Ok thank you David. I tested your method and it works fine.

 Problem resolved.

Bye 


Reply