Error Sorry, this site hasnt been shared with you. is the new Access denied in sharepoint 2013.
Sorry, this site hasnt been shared with you. Its a basically uncommon error for sharepoint users.
What it actually means that your windows account has not been granted access to the site.
This error is cause by permissions/credentials access problem.
If you have credential for account who has rights on site then, by simply hitting below URL, you can have prompt to login prompt.
<href: <a href=http:/serverurl/_layouts/closeConnection.aspx?loginasanotheruser=true />
If you want to add your account as Site collection Administrator or to determine the site collection administrator is:
Lets Log in to SharePoint 2013 Central Administration.
Make sure Select Application Management -> Change Site Collection Administrators.
Select the correct site collection and look at the primary site collection administ