web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Hiding web page from A...
Power Pages
Unanswered

Hiding web page from Authenticate Users and allowing Anonymous Users to access it

(0) ShareShare
ReportReport
Posted on by 16

Hello,

I have a requirement to allow access to a web page to Anonymous Users but once any users logged-in then restrict access to that page or logged-in users. I tried with Web Role but it didn't work. Is anyone implement this or know the solution for it?


Thanks


Regards

AR

Categories:
I have the same question (0)
  • OOlashyn Profile Picture
    3,498 Most Valuable Professional on at

    Hi @AR19 ,

     

    There is out of the box way to restrict access to certain webpages by web roles. It is called Web Page Access Control Rules (see official docs here). However, you cannot apply it to anonymous users. If the page that you want to show is built using your custom Web Template you can use liquid to check if page accessed by an authenticated user or not and show depending content. Something like this:

    {% if user %}
    <!-- Content for Authenticated Users -->
    {% else %}
    <!-- Content for Anonymous Users-->
    {% endif %}

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 64

#2
DP_Prabh Profile Picture

DP_Prabh 36

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 30 Most Valuable Professional

Last 30 days Overall leaderboard