Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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();

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.