Sharepoint On Prem: Embed Hyperlink in "You need permission to access this site" page

vtrux 21 Reputation points
2020-11-19T14:05:16.543+00:00

Hello,

I currently have a custom message appear when a user tries to access a page they do not have permission to view. I would like to include a clickable hyperlink in the message for the user to reference. Is this possible?

I've tried:

  1. Pasting the link directly (isn't clickable, you must copy and paste)
  2. Using HTML - <a href="url">link text</a> This method shows the HTML Syntax and doesn't create a link.

If any of you are aware of a way to create a clickable hyperlink, please share.

Thank you!

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,340 questions
{count} votes

Accepted answer
  1. ChelseaWu-MSFT 6,326 Reputation points
    2020-11-26T01:53:45.887+00:00

    Hyperlink or HTML elements is not supported in the “Add a custom message to the request access page” section under Permissions > Change how members can share in SharePoint modern experience. It only displays the message as plain text on the request access page.

    42648-image.png

    Also, since customization is not supported in modern experience, it is not possible to create a hyperlink via this OOB feature.

    As a workaround, you can build a custom ASPX page or modified the AccessDenied.ASPX page in classic experience, then add the hyperlink within the custom message using HTML Syntax. Reference: SharePoint 2013: how to create a custom access denied page.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. ChelseaWu-MSFT 6,326 Reputation points
    2020-11-20T02:57:34.413+00:00

    Can you share detailed information about how and where you have created the custom message?

    If you have built a custom ASPX page or modified the AccessDenied.ASPX page, you can add the hyperlink within the custom message using the HTML Syntax

    <a href="link"> display text </a>
    

    You can refer to the article here for detailed procedure: SharePoint 2013: how to create a custom access denied page.


    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. **


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.