How to pull Active Directory information about current user from Infopath

Hi,

I am new to Infopath. I have this requirement that when I open the Infopath form, fields like ID, Name, Department etc should pull in data automatically from Active Directory. Could someone help?

thanks in advance,
j1981Asked:
Who is Participating?
 
j1981Author Commented:
The solution at the link http://msdn.microsoft.com/en-us/library/bb952744(v=office.12).aspx worked for me.

thanks for offering to help.
0
 
Clay FoxDirector of Business IntegrationCommented:
Several ways at this.
InfoPath has a builtin function called Username() which returns the local account name.
If you have an HR system or other record then you can use that to look up additional information.

SharePoint has a getuserprofile web service which will return the basic information which is synced from AD.

www.qdabra.com has an AD webservice which will allow you to query anything in AD without code or anything.  You may need this if you are using custom fields in AD.

Hope that gets you started.
0
 
j1981Author Commented:
"SharePoint has a getuserprofile web service which will return the basic information which is synced from AD." -- I think this is the solution that may work.

Could you guide me further on how to go about this? thank you in advance.
0
 
j1981Author Commented:
I realized later that this solution woudl work only where the security level of the Infopath form can be set to "Full Trust" which was not so in my network. This was because this solution employs code

Thankfully, I got the name of another webservice I could use in our organization, and got this working.

So this is not a perfect solution, but will work in cases where your forms can have "Full Trust"
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.