Populate AD users in InfoPath (WSS 3.0)

  • 24 June 2009
  • 2 replies
  • 0 views

Badge +6

Hi,

 

I have a K2 BP process where the main form of the process in built on infopath 2007. the form is published to a form library in WSS 3.0. I need to populate a list of users from AD in a drop down list and i need alos to populate the current logged in user in a text box as well as other information related to the current logging user profile. 

I'm not able to use userprofileservices.asmx webservice since it it is only provided with MOSS2007 and not with WSS 3.0.

 

Thanks 


2 replies

Badge +6

Hi


 


You can use the InfoPath built-in function username() to get the current logged-in user. Use a rule to populate the textbox with the current user.


 


For the AD users, you can create SO with a GetList method that uses either the ADService2 or URMService of K2 to connect to AD and retrieve a list from AD. Bind the method to the drop down control and use a rule to execute the method when the form is opened, that should display the users in the drop down.

Badge +11

Here is a blog entry that may also be helpful:


http://www.k2underground.com/blogs/blacktop/archive/2009/04/20/who-am-i.aspx

Reply