SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible for a web-based InfoPath 2007 form to auto-retrieve the email address of a user and display on a text field after the end-user had select it in the Person/Group Picker? (For SharePoint Server 2007)

A form with two field - one is text field while another one is a person/group picker field. When a end-user select a person or group from the person/group picker field, the email address will auto display at the text field.

share|improve this question
up vote 0 down vote accepted

You can use User Profile Service Web service (http://ServerName/_vti_bin/UserProfileService.asmx) to retrieve a user's email.

You can use code or no code solution:

share|improve this answer

You can get the AccountId from the PeoplePicker and then query the UserProfileService as vedran suggested. However, if you want a no-code solution, it will be a little tricky since the PeoplePicker does not support rules.

You will need a seperate field which holds the AccountId as default value which you then can use to query the webservice.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.