Infopath based on K2 role

  • 9 December 2011
  • 2 replies
  • 0 views

Badge +2

Hello,


I have a scenario in which i'm assigning an infopath form to Three K2 Roles. The problem is all these roles have different restricted fields in the form.


Is there any way to get the current users K2 Role? Any suggestions will be usefull!


Thanks in advance.


2 replies

Badge +1

Hi Karthikeyan,



I am Deepan, How r u?



Please let me know if my understanding is wrong...


I hope u r accessing the roles from Active directory.. If you want to access the AD roles from the infopath form then you have to create the Data connection (have to consume the existing user profile web service).. Please see the below link..
http://claytoncobb.wordpress.com/2009/07/19/infopath-user-roles-in-browser-enabled-forms-using-groups/



Hope this helps!



Thanks,
Deepan

Badge +2

Hi,


    I'm fine deepan. I need the K2 role of the logged user. I managed to find a way by getting the list of names in required role and pass it to infopath for comparing with the current logged user. Is there any other better way of doing it?

Reply