Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.