Skip to main content
Nintex Community Menu Bar

K2 Blackpearl API - Role

  • August 28, 2008
  • 2 replies
  • 15 views

Forum|alt.badge.img+3

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. 

2 replies

Forum|alt.badge.img+11
  • August 28, 2008

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


Forum|alt.badge.img+3
  • Author
  • Nintex Partner
  • August 28, 2008

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

 Problem resolved.

Bye