Building Your SharePoint 2013 development machine on Windows Server 2012 – Part 8 – Configuring My Sites and User Profiles


UPDATE: SharePoint 2016 development machine

I am doing a collection of blog posts, you can access the other parts of this post below.

MySites

We are now going to create a new Web Application for our My Site site. However we are not going to create a HNSC like we did for dev.cannonfodder.local, here we are going to create path-based site collections. From the Microsoft Technet article (which is for SP2010, so it might be different now, but couldn’t see anything saying something different) that there is a guideline for mysite sites.

  • You must use the self-service site creation feature that is included with SharePoint Server to create path-based site collections. MySite should be created as a path-based site or a custom solution should be provided.

Creating a Web Application for MySites

  1. From the start menu, type Central Administration and open the site.
  2. Select Application Management > Manage Web Applications.
  3. In the ribbon click the New icon.
  4. In the Create New Web Application dialog leave Create a new IIS web site selected and type the name as SharePoint My Site Host, leave the port as 80, and put my.cannonfodder.local in the host header.
  5. For simplicity in finding the Web Applications, I put the path on a different drive. D:\VirtualDirectory\MySite
  6. Under Claims Authentication Types set the Integrated Windows Authentication to Negotiate (Kerberos)
  7. Under Application Pool, select Use existing application pool and select SPContent App Pool
  8. Under Database Name and Authentication set the Database Name to SP_DEV_MySites.
  9. Scroll down to the bottom and click OK.
  10. Once the Web Application of My Site Host has been setup, click the link to Create
    Site Collection

Creating a Site Collection for MySites.

  1. On the Create Site Collection put the Title as My Site Host
  2. Set the URL as /
  3. The Template section as My Site Host, which can be found in the Enterprise tab
  4. Set the Primary Site Collection Administrator as cannonfodder\administrator

  5. Scroll down to the bottom and click OK.

Configure the Web Application to Host My Sites.

  1. After you have created your site collection, you should be returned to the Manage Web Application page. Select SharePoint My Site Host by clicking on it. This will highlight the line and items in the ribbon will become available to you.
  2. In the ribbon click the button Managed Paths

  3. In the Define Managed Paths dialog tick Sites. Then click the link Delete selected paths.
  4. Now add a new path called personal and make it Wildcard inclusion.
  5. Add another new path called my and make it Explicit inclusion. Then click OK.

  6. With SharePoint My Site Host still selected click the icon on the ribbon called Self-Service Site Creation.

  7. On the Self-Service Site Creation page, under Site Collections, select the on radio button. Click OK.

Add my.cannonfodder.local to DNS

  1. From the start menu, type DNS and open the application.
  2. Expand Forward Lookup Zones,
    right click cannonfodder.local and select New Host (A or AAAA)…
  3. For Name put my. Put the IP Address as 192.168.139.99, click Add Host. Click OK to the DNS message box stating the host record wad successfully created. Close DNS Manager.

Create Kerberos SPN for my.cannonfodder.local

  1. From the start menu, type cmd and open Command Prompt.
  2. Type setspn –S HTTP/my.cannonfodder.local cannonfodder\SP_Content
  3. While here also flush dns by typing ipconfig /flushdns
  4. Close Command Prompt window.

Configuring the User Profile Service Application My Site settings.

  1. In Central Administration left hand menu, select Application Management.
  2. Under Service Applications select Manage Service Applications.
  3. Find the User Profile Service Application in the list and click on it.

  4. Under the My Site Settings section click the Setup My Sites link.
  5. On the My Site Settings page, set the My Site Host to http://my.cannonfodder.local
  6. Under the heading Personal Site Location set the value to personal. Now click OK.

Configuring SharePoint User Profile Service Application with Active Directory.

There is a new way to import users into the user profile from Active Directory in SharePoint 2013. It is called Active Directory Import. It is a faster than the SharePoint 2010 way of using the FIM approach. Spencer Harbar has written a good blog about it here.

  1. From the start menu, type Central Administration and open.
  2. Under Application Management click Manage Service Applications.
  3. Find the User Profile Service Application and click the link.
  4. Under Synchronization, click Configure Synchronization Settings.
  5. On the Configure Synchronization Settings page, under Synchronization select Use SharePoint Active Directory Import and click OK.
  6. Back on the User Profile Service Application page, under Synchronization, select Configure Synchronization Connections.
  7. On the Configure Synchronization page, select Create New Connection.
  8. Put the following details in the Add New Synchronization Connection page.
    1. Connection Name: Cannonfodder AD
    2. Type: Active Directory import
    3. Connection Settings:
      1. Fully Qualified Domain Name: cannonfodder.local
      2. Authentication Provider Type: Windows Authentication
      3. Account Name: cannonfodder\administrator
      4. Password: Pa55w0rd
      5. Confirm Password: Pa55w0rd
    4. Under Containers click Populate Containers.
    5. After it loads, expand CANNONFODDER and then tick Users. Click OK.
    6. You will now be returned to the Synchronization Connection Page. You will see your new connection display.
  9. Repeat Steps 2 + 3 to navigate back to User Profile Service Application.
  10. Take note that on the right hand side of the screen under Profiles it states that there are 2 User Profiles.
  11. Under Synchronization, click Start Profile Synchronization.
  12. Select Start Full Synchronization and click OK.
  13. Refresh the Manage Profile Service: User Profile Service Application page, and you should see more User Profiles.
Advertisements