Server Fault is a question and answer site for system and network administrators. 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

I wonder if anyone knows a solution to this problem:

I am submitting some fields to a Sharepoint List. In detail some values are passed to the Sharepoint lists.asmx Webservice.

Problem is: I want to pass a person into a data field, which is a "Person or Group" field. So I have to pass a string in this format: "1;#Username,#someMoreValues" respectively "ID;#" in enough. But this ID is an internal ID, which Sharepoint uses for a reason, I don't want to know ;)

Is there any chance, to get this ID via the Sharepoint webservices? The userprofileservice.asmx and the getuserinfo.asmx will return anything but the ID.

Any Ideas?

share|improve this question
up vote 0 down vote accepted

I haven't had a chance to check and make sure this is for sure what you are looking for, but I'm reasonably sure that what you want is to use the People.asmx web service, SearchPrincipals method. It returns a collection of user principals, and one of the fields is UserInfoID .

share|improve this answer
Thanks, it returns the ID, I was looking for! (So i got some new questions, but that will be a new post) – powerbar Sep 4 '09 at 9:00

Use Id equal to "-1".

Example: -1; #corp\username

More information is here

share|improve this answer

Your Answer


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