I have site collection and added site collection administrator after I have restored the content database from the staging server after that its collection administrator name is added and deleted other administrator

so I can't open the site it shows the site not shared with you.

Sorry this site hasn't been shared with you

I have tried changing the secondary site collection administrator to but no use. kindly help me to resolve this

  • try to set using powershell. that should work. Commented Jun 12, 2017 at 10:32
  • I have tried that too but still it show "sorry the site not is not shared with you" error Commented Jun 12, 2017 at 10:44
  • Execute powershell with farm account. Also from farm account you should be able to navigate to central admin and update site administrator. Commented Jun 12, 2017 at 10:46
  • Yes i have runned the command under farm control and i have add another user by power shell command but nothing works Commented Jun 12, 2017 at 11:17
  • what is the authentication method being used in Production and test farm? are both farm on the same domain?
    – Waqas Sarwar MVP
    Commented Jun 12, 2017 at 13:36

1 Answer 1


Try to edit your SharePoitoint administrator via Central Administration as the following:

  • Open Central Administration > Application Management > Change Site Collection Administrators. enter image description here

  • Select your Web Application > Select the site collection.

  • Remove the old site collection administrators then add the new site collection administrators of the current farm.

enter image description here

  • Yes i have did this one but am getting the same error Commented Jun 12, 2017 at 11:15
  • Which error? !! Commented Jun 12, 2017 at 11:17
  • Sorry this sit is not shared with you Commented Jun 12, 2017 at 11:18
  • I have enabled anonymous to but still am getting aite not shared with you Commented Jun 12, 2017 at 11:26
  • it's annoyed issue with multiple reasons, could you provide us the step by step that you have did to migrate from Staging to Production Commented Jun 12, 2017 at 11:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.