Introduction to My Site in SharePoint 2013/Office 365
My Site is a personal site for individual users in an organization.
The default link on the top of every page displays tabs for:
The default links on the left navigation bar that are visible to the owner of the My Site are as follows:
- Newsfeed
- About me
- Blog
- Apps
- Tasks
- Recent
In this article, I have give the code to create a personal site in Office 365 using object model.
- public void CreatePersonalSiteUsingCSOM(string tenantAdminUrl, string userName, string password, string[] emailIDs)
- {
- using (ClientContext _context = new ClientContext(tenantAdminUrl))
- {
- try
- {
- SharePointOnlineCredentials _creds = new SharePointOnlineCredentials(userName, Utilities.StringToSecure(password));
- _context.Credentials = _creds;
- _context.ExecuteQuery();
- ProfileLoader _profileLoader = ProfileLoader.GetProfileLoader(_context);
- _profileLoader.CreatePersonalSiteEnqueueBulk(emailIDs);
- _profileLoader.Context.ExecuteQuery();
- }
- catch(Exception _ex)
- {
- throw;
- }
- }
- }