So this morning I had a slight issue with sharepoint after three user accounts in the domain accidentally got deleted due to synchronization issues. I found a simple way to fix the user account SID issue that causes errors around the site, and prevents access to MySite. Read on to see the fix.

If user account remains the same name:
This way requires some extra legwork compared to if the account name changes.

First thing is open up the Shared Services for the site collection.
Go into User profiles and properties.
Click on view user profiles.
Find the user account that’s been recreated and delete the profile for it making note of the personal website for it.
Next do a Full Import of users from the user profiles and properties page. This is required because it won’t see the recreated account in an incremental import.
Next open up cmd and browse down to stsadm to run the following command:

stsadm -o siteowner -url http://servername/personal/username -ownerlogin DOMAIN\username

This will bind the recreated user back to their MySite without having to go into the database and change SID’s for users by hand.

Lastly, go into Audiences under your Shared Services provider and recompile your audiences to get the recreated account rebound to it’s audiences. Only required if you use audience filtering.

Using this process I was able to resume using the account without any site changes to permissions for the user.

If user account name changes:
If the user account name remained the same it’s very simple to attach it to the new box and audiences. First thing you do is you load up cmd and browse to stsadm. Then it’s simply using the siteowner command to bind the mysite to the new user account:

Syntax:
stsadm -o siteowner -url http://servername/personal/username -ownerlogin DOMAIN\username

This command must be ran from the farm server account.

Next open up your shared services host for the site collection and go into User profiles and properties.
Next resync your user profiles by doing an incremental import.
Lastly, head into the Audiences section of Shared Services and recompile your audiences if you use audience filtering. 

trackback image tell a friend image Permalink Image

Post Tags: active directory  server  sharepoint  moss 


Next entry: Sharepoint SP1 Woes



Comments: (1)
Michael on Mon, Feb 25th, 2008 at 04:00 PM

Nice post!


Page 1 of 1 pages

Post a comment

Name:
(Required)

Email:
(Required)

URL:

Smileys

Remember my personal information

Notify me of follow-up comments?

Submit the word you see below: