{"id":190,"date":"2011-09-27T10:21:57","date_gmt":"2011-09-27T09:21:57","guid":{"rendered":"http:\/\/www.mysticslayer.com\/?p=190"},"modified":"2011-09-27T10:21:57","modified_gmt":"2011-09-27T09:21:57","slug":"restore-site-sharepoint-2010-issues-with-site-collection-owners","status":"publish","type":"post","link":"http:\/\/www.mysticslayer.com\/?p=190","title":{"rendered":"Restore Site SharePoint 2010 issues with site collection owners"},"content":{"rendered":"<p>We&#8217;ve had some multiple issues regarding the Site Collection owners, and we had to fix these in a fashioned time. After restoring we had the issue that we couldn&#8217;t change the primary and secondary site collection Administrators. So it was difficult where the bug was for us. But it wasn&#8217;t a bug.<\/p>\n<p>After a new fresh install of the SP farm we still had these problems&#8230; so we had to search it out. After a long search it seemed that the UserAccountDirectoryPath was the issue. When the User Account Directory Path is filled in the table [dbo].[AllSites] of your content database you can do what you want, but you can&#8217;t change the owners.<\/p>\n<p>So we had to remove the UserAccountDirectoryPath: Set-SPSite -Identity &#8220;http:\/\/site&#8221; -UserAccountDirectoryPath &#8220;&#8221;<\/p>\n<p>And vo\u00ecla it was fixed. With two Quotes it removes the UserAccountDirectoryPath. You have to this allways if you&#8217;re restoring your Site Collection to another farm.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve had some multiple issues regarding the Site Collection owners, and we had to fix these in a fashioned time. After restoring we had the issue that we couldn&#8217;t change the primary and secondary site collection Administrators. So it was difficult where the bug was for us. But it wasn&#8217;t a bug. After a new [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[224,246],"tags":[332,331,333,52,329,223,330],"class_list":["post-190","post","type-post","status-publish","format-standard","hentry","category-sharepoint-2010","category-sharepoint-foundation","tag-change","tag-remove","tag-restore","tag-sharepoint","tag-site-collection-owners","tag-sp2010","tag-useraccountdirectorypath"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pe1EH-34","_links":{"self":[{"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/posts\/190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=190"}],"version-history":[{"count":1,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/posts\/190\/revisions"}],"predecessor-version":[{"id":191,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/posts\/190\/revisions\/191"}],"wp:attachment":[{"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=190"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}