Export (0) Print
Expand All

UserProfile.CreatePersonalSite method

Creates a personal site for this user if a personal site does not already exist.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

public void CreatePersonalSite()

SPSite site = new SPSite("http:// url");
SPServiceContext serviceContext = SPServiceContext.GetContext(site);
UserProfileManager profileManager = new UserProfileManager(serviceContext);
UserProfile profile = profileManager.GetUserProfile("user");
profile.CreatePersonalSite();

Community Additions

ADD
Show:
© 2014 Microsoft