Notifications
Announcements
Is there a low-code or low-lift way to redirect the user to login to the Power Page if they are trying to view a list on a page that requires authentication?
Create a Web Page Access Control Rules for the page to restrict read.
https://learn.microsoft.com/en-us/power-pages/security/page-security#manage-page-permissions-with-the-portal-management-app
Hi @Chris_Hilger
You can achieve this in two ways:
Page Permission: Restrict anonymous users from accessing your page that contains the list.Liquid Template: Add the following Liquid template in your page's custom JavaScript section:{% if user %}{% else if %}window.open('https://' + window.location.host + '/SignIn?returnUrl=' + window.location.pathname, '_self');{% endif %}
Cheers
Hi @Chris_Hilger ,
As @GWham1 mentioned you can use the access control rules as shown below
If this post helps you with your problem, please mark this answer as Accepted Solution.
If you like my response, please give it a Thumbs Up.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Fubar 74 Super User 2025 Season 2
Jerry-IN 55
sannavajjala87 31