Is it possible to change this message

Sorry this site is not shared with you

to something else when users don't have permissions?


If you are talking about the AccessDenied.aspx page, then no. The text on the page is retrieved from resource files.

Unless you physically alter the page in the 15 hive on your web front-ends - which is possible, but not recommended and they can be overwritten by CU's etc.

| improve this answer | |

It is recommended not to modify the OOB things or content. I would say to go with your custom access denied page. To do this, in SP2013 we have a bug and can achieve using HTTPModule. Please look into the following URL for more details.

Custom Access Denied Page

Steps to create HTTP Module

Please let me know if you have any queries.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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