When using the Manage Access feature in SharePoint Online, can you edit the message users see if they're denied access to a page?

Hazi 6 Reputation points
2021-09-10T14:33:12+00:00

Is there any way to edit the Access Denied message that displays when a user tries to view a site page they don't have access to? Or create a custom message?
131096-access-denied.jpg

For background:
I have a SharePoint Online communication site that will house some information we don't want to share with all users. My plan has been to create two different permission groups for our users, then use the Manage Access feature in the Site Pages library to "stop sharing" certain pages with the group we don't want to have access. The problem is: ideally, I'd like to edit the Access Denied message they would receive to remove the suggestions for how to gain access and instead explain why access was denied. Can this be done?

Thanks for your help,

Katina

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,078 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Anupam Shrivastava 176 Reputation points
    2021-09-11T12:45:51.977+00:00

    Unfortunately, there is no such option yet in SharePoint online. You can use Audience Targeting to hide the links to those pages, so that such users who don't have permissions, don't even see those pages.

    Thanks,
    Anupam

    0 comments No comments

  2. Allen Xu_MSFT 13,796 Reputation points
    2021-09-13T01:33:13.763+00:00

    Hi @Hazi ,

    AFAIK, there’s no such option to customize or redirect Access Denied page in SharePoint Online.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.