Sladescross's Blog

Blogging about Sharepoint related stuff

MySite Collaboration July 23, 2010

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

http://jopx.blogspot.com/2006/12/automatic-my-site-creation-with.html

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);
u.CreatePersonalSite();

}
}

About these ads
 

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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

 
Follow

Get every new post delivered to your Inbox.

Join 63 other followers