Friday, December 5, 2008

Getting user profile information

Scenario:
You want to get the user email or other profile related details from sharepoint in infopath or your code.

Solution:
You can use GetUserProfileByName web-method from UserGroup.asmx web-service. This will return you Key Value pair. Using DOM you can specify what fields you want information about.

Code:

http://localhost/_vti_bin/UserGroup.asmx?WSDL
Select GetUserProfileByName

Article:
http://blogs.microsoft.co.il/blogs/itaysk/archive/2007/04/05/InfoPath-_2D00_-Get-the-current-user-without-writing-code.aspx

0 comments: