Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

MS CRM Portals: Web page access to Anonymous

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

How can I give access of web page to Anonymous Users alone in MS CRM Portals. (Not to another web role)?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: MS CRM Portals: Web page access to Anonymous

    Thanks Dmytro, that was helpful.

  • Suggested answer
    Justinjose Profile Picture
    Justinjose 2,707 on at
    RE: MS CRM Portals: Web page access to Anonymous

    Hi Ravanth,

    As I said you have restrict authenticated users not anonymous users. I am not sure this is what you expecting.

    for example there are 4 web pages and Web page1, Web page2, Web page2 and Web page4

    if you want give access to Web page1, Web page2 for anonymous users. Restrict Web page3 and Web page4 using any authenticated web role. So only logged in user can see Web page3 and Web page4.

    Thanks

    Justin Jose

  • Verified answer
    Dmytro Rutkovskyi Profile Picture
    Dmytro Rutkovskyi 1,835 on at
    RE: MS CRM Portals: Web page access to Anonymous

    Hi Revanth,

    I'm sorry. Looks like this functionality requires to access user web roles to work, and can't retrieve default "Anonymous" from not authenticated user. 

    I assume you need a quite simple page. You can achieve this with liquid. 
    You can create new Page Template, which is webtemplate type, put this liquid as webtemplate content:

    {% extends 'Layout 1 Column' %}
    
    {% block title %}
    {% if user %}
     {% include 'Page Header' title: 'Access Denied' %}
    {% else %}
      {% include 'Page Header' title: pagetitle %}
    {% endif %}
    {% endblock %}
    
    
    {% block main %}
    {% if user %}
     Some Details why they can't see this page
    {% else %}
       {% include 'page_copy' %}  
    {% endif %}
    {% endblock %}


    Make sure you update Page template for your page and localized version of the page.

    I can receive something similar to what you need. You can update as well breadcrumbs to hide Page title if you need:

    non_2D00_auth_2D00_example.jpg

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: MS CRM Portals: Web page access to Anonymous

    Hey Dmytro,

    I have given the web page with Restrict read right to Anonymous users web role alone.

    It's showing access denied for logged-in user but it's redirecting to sign-in for anonymous users.

  • Suggested answer
    Justinjose Profile Picture
    Justinjose 2,707 on at
    RE: MS CRM Portals: Web page access to Anonymous

    Hi Revanth,

    Use Web page access control rules to restrict Web pages for authenticated users. So the unrestricted web pages will be available for anonymous users.

    community.dynamics.com/.../hide-a-primary-navigation-link-using-web-page-access-control-rule-in-portals-in-dynamics-365

    Thanks

    Justin Jose

  • Suggested answer
    Dmytro Rutkovskyi Profile Picture
    Dmytro Rutkovskyi 1,835 on at
    RE: MS CRM Portals: Web page access to Anonymous

    Hello, you can use Restrict Read permission to Anonymous Role in "Web page access control rules" and assign this rule to your page.

    More details about access control rules are here: docs.microsoft.com/.../webpage-access-control

    As well you can limit part of content of the page to users in different roles with liquid.

    Example with roles can be found here: community.adxstudio.com/.../user

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans