SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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 it is possible to programatically change user's id in Sharepoint 2010? If it is, I would be very thankful for explantion on how to do that.

share|improve this question
up vote 3 down vote accepted

If you by ID mean the integer that follows the user, this cannot be changed.

The ID is part of the primary key, and exposed as a getable property in the object model:

SPPrincipal.ID SPUser.ID

Why would you need this?

share|improve this answer
Because of mixed authentication... If the user is later created in AD and uses Win Authentication, I would like to map all his items etc. created by his old account to the new account. Thanks for answer. – Andrej Cimperšek May 4 '11 at 11:35

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.