Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there a way to customize the "access denied" page that users get when trying to access a page they are not allowed to access?

I need this page to have the same look and feel of the site rather than switch to default SharePoint UI.

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

That page: AccessDenied.aspx uses a master page called simple.master and not a default.master located on master page gallery on each site. So you should start from there.

share|improve this answer
4  
Be aware that simple.master (along with other master pages such as application.master) "belongs" to Microsoft and should not be edited. These files can be overwritten without warning when upgrading SharePoint. Instead you should consider using the HttpModule approach. Read the two excellent articles on this subject: blogs.msdn.com/chandru/archive/2009/12/11/… blogs.msdn.com/bgeoffro/archive/2007/11/12/… –  Anders Rask Jan 12 '10 at 21:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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