{"id":975,"date":"2015-09-12T21:26:19","date_gmt":"2015-09-12T20:26:19","guid":{"rendered":"http:\/\/www.myfatblog.co.uk\/?p=975"},"modified":"2015-09-12T21:28:56","modified_gmt":"2015-09-12T20:28:56","slug":"sharepoint-personal-sites-for-users-from-a-trusted-domain","status":"publish","type":"post","link":"http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/","title":{"rendered":"SharePoint Personal Sites for users from a Trusted Domain"},"content":{"rendered":"<p>Whilst working on a small piece for a client to allow their users to create personal sites, I encountered an interesting error with a fairly simple and understandable fix. But i wasted around an hour before I twigged what the issue was, so I figured it\u2019s worth documenting here!<\/p>\n<p>For this client, the SharePoint server exists in one domain, and the users all now exist in a new domain that they were migrated to. Access to SharePoint is provided by way of a two way domain trust.<\/p>\n<p>I had finished configuring the MySites host and had tested ok using local accounts in the SharePoint domain, but I hit an issue when creating the personal sites in PowerShell for the users in the trusted domain.<\/p>\n<p><a href=\"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2015\/09\/BoxwoodError.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"BoxwoodError\" src=\"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2015\/09\/BoxwoodError_thumb.jpg\" alt=\"BoxwoodError\" width=\"735\" height=\"111\" border=\"0\" \/><\/a><\/p>\n<p>And in the ULS logs we could see several errors against the user whose personal site I was trying to create.<\/p>\n<p>Failed to create personal site (DOMAIN\\username, https:\/\/obscuredurl\/personal\/username): Microsoft.SharePoint.SPException: User cannot be found.<br \/>\nat Microsoft.SharePoint.Administration.SPSiteCollection.Add(SPContentDatabase database, SPSiteSubscription siteSubscription, String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String secondaryContactLogin, String secondaryContactName, String secondaryContactEmail, String quotaTemplate, String sscRootWebUrl, Boolean useHostHeaderAsSiteName)<br \/>\nat Microsoft.SharePoint.SPSite.SelfServiceCreateSite(String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String contactLogin, String contactName, String contactEmail, String quotaTemplate, SPSiteSubscription siteSubscription)<br \/>\nat Microsoft.Office.Server.UserProfiles.UserProfile.&lt;&gt;c__DisplayClass2.&lt;CreateSite&gt;b__0().<\/p>\n<p>&nbsp;<\/p>\n<p>Luckily, once I realised what was going wrong the fix was quite simple, however it needed a little bit of STSADM as the people picker still doesn\u2019t exist in PowerShell yet! All we had to do was tell the PeoplePicker for the MySites host to search the other trusted domain. (I should have remembered this, as I had to do it for the main web applications when we migrated the users to the new domain some time ago!)<\/p>\n<p>The details for this are available at <a title=\"https:\/\/technet.microsoft.com\/en-us\/library\/cc263460.aspx\" href=\"https:\/\/technet.microsoft.com\/en-us\/library\/cc263460.aspx\">https:\/\/technet.microsoft.com\/en-us\/library\/cc263460.aspx<\/a><\/p>\n<p>Once this was set-up the creation of personal accounts worked just fine.<\/p>\n<p>Paul.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whilst working on a small piece for a client to allow their users to create personal sites, I encountered an interesting error with a fairly simple and understandable fix. But i wasted around an hour before I twigged what the issue was, so I figured it\u2019s worth documenting here! For this client, the SharePoint server &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[31,200,38],"tags":[203,201,202],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SharePoint Personal Sites for users from a Trusted Domain - Blog of an overweight SharePoint addict<\/title>\n<meta name=\"description\" content=\"Unable to created Personal Sites for users from a Trusted Domain, SharePoint 2010, A simple resolution using STSADM\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SharePoint Personal Sites for users from a Trusted Domain - Blog of an overweight SharePoint addict\" \/>\n<meta property=\"og:description\" content=\"Unable to created Personal Sites for users from a Trusted Domain, SharePoint 2010, A simple resolution using STSADM\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog of an overweight SharePoint addict\" \/>\n<meta property=\"article:published_time\" content=\"2015-09-12T20:26:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-09-12T20:28:56+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2015\/09\/BoxwoodError_thumb.jpg\" \/>\n<meta name=\"author\" content=\"Cimares\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cimares\" \/>\n<meta name=\"twitter:site\" content=\"@cimares\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Cimares\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/\",\"url\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/\",\"name\":\"SharePoint Personal Sites for users from a Trusted Domain - Blog of an overweight SharePoint addict\",\"isPartOf\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2015\/09\/BoxwoodError_thumb.jpg\",\"datePublished\":\"2015-09-12T20:26:19+00:00\",\"dateModified\":\"2015-09-12T20:28:56+00:00\",\"author\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6\"},\"description\":\"Unable to created Personal Sites for users from a Trusted Domain, SharePoint 2010, A simple resolution using STSADM\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/#primaryimage\",\"url\":\"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2015\/09\/BoxwoodError_thumb.jpg\",\"contentUrl\":\"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2015\/09\/BoxwoodError_thumb.jpg\",\"width\":735,\"height\":111},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#website\",\"url\":\"http:\/\/www.myfatblog.co.uk\/\",\"name\":\"Blog of an overweight SharePoint addict\",\"description\":\"The rantings of a (not so) food obsessed IT consultant!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.myfatblog.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6\",\"name\":\"Cimares\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg\",\"contentUrl\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg\",\"caption\":\"Cimares\"},\"sameAs\":[\"http:\/\/www.myfatblog.co.uk\"],\"url\":\"http:\/\/www.myfatblog.co.uk\/index.php\/author\/reginald\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SharePoint Personal Sites for users from a Trusted Domain - Blog of an overweight SharePoint addict","description":"Unable to created Personal Sites for users from a Trusted Domain, SharePoint 2010, A simple resolution using STSADM","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/","og_locale":"en_US","og_type":"article","og_title":"SharePoint Personal Sites for users from a Trusted Domain - Blog of an overweight SharePoint addict","og_description":"Unable to created Personal Sites for users from a Trusted Domain, SharePoint 2010, A simple resolution using STSADM","og_url":"http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/","og_site_name":"Blog of an overweight SharePoint addict","article_published_time":"2015-09-12T20:26:19+00:00","article_modified_time":"2015-09-12T20:28:56+00:00","og_image":[{"url":"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2015\/09\/BoxwoodError_thumb.jpg"}],"author":"Cimares","twitter_card":"summary_large_image","twitter_creator":"@cimares","twitter_site":"@cimares","twitter_misc":{"Written by":"Cimares","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/","url":"http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/","name":"SharePoint Personal Sites for users from a Trusted Domain - Blog of an overweight SharePoint addict","isPartOf":{"@id":"http:\/\/www.myfatblog.co.uk\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/#primaryimage"},"image":{"@id":"http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/#primaryimage"},"thumbnailUrl":"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2015\/09\/BoxwoodError_thumb.jpg","datePublished":"2015-09-12T20:26:19+00:00","dateModified":"2015-09-12T20:28:56+00:00","author":{"@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6"},"description":"Unable to created Personal Sites for users from a Trusted Domain, SharePoint 2010, A simple resolution using STSADM","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.myfatblog.co.uk\/index.php\/2015\/09\/sharepoint-personal-sites-for-users-from-a-trusted-domain\/#primaryimage","url":"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2015\/09\/BoxwoodError_thumb.jpg","contentUrl":"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2015\/09\/BoxwoodError_thumb.jpg","width":735,"height":111},{"@type":"WebSite","@id":"http:\/\/www.myfatblog.co.uk\/#website","url":"http:\/\/www.myfatblog.co.uk\/","name":"Blog of an overweight SharePoint addict","description":"The rantings of a (not so) food obsessed IT consultant!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.myfatblog.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6","name":"Cimares","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/image\/","url":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg","contentUrl":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg","caption":"Cimares"},"sameAs":["http:\/\/www.myfatblog.co.uk"],"url":"http:\/\/www.myfatblog.co.uk\/index.php\/author\/reginald\/"}]}},"_links":{"self":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/975"}],"collection":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=975"}],"version-history":[{"count":2,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/975\/revisions"}],"predecessor-version":[{"id":977,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/975\/revisions\/977"}],"wp:attachment":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=975"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}