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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
sannavajjala87 38 Super User 2026 Season 1
Valantis 37
Fubar 23 Super User 2026 Season 1