Sladescross's Blog

Blogging about Sharepoint related stuff

MySite Collaboration July 23, 2010

Filed under: MySite,MySite Create Personal Site — sladescross @ 3:40 pm

public static void CreatePersonalSite(string sAccount)
using (SPSite site = new SPSite(“http://moss”))
ServerContext context = ServerContext.GetContext(site);
UserProfileManager profileManager = new UserProfileManager(context);
UserProfile u = profileManager.GetUserProfile(sAccount);


About these ads

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 63 other followers