cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Phineas
Post Prodigy
Post Prodigy

Web Page Accerss Error When Permissions Applied

If I leave the toggle default position "Page available to everyone" as is I can see all items, including the page I created.

 

If I change the toggle, add 'Administrator' and 'Authenticated User', and update the 'Selected Roles'...

 

Phineas_0-1637352065556.png

 

...and try to 'Browse the website', I get the following web access error.

 

Thoughts or what I'm doing wrong?

 

Phineas_1-1637352350454.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ragavanrajan
Super User
Super User

Hi @Phineas 

 

Please follow the instructions from @Anonymous . I completely agree portal studio experience is still flaky.  

In addition, in the below thread I have clearly provided instructions on how you can apply web page access control rules and restrict pages 

 

https://powerusers.microsoft.com/t5/Power-Apps-Portals/Web-Role-with-multiple-Web-Page-Access-Control-Rules-not-working/m-p/868412#M6468 

 


------------

If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Phineas , in my opinion the studio experience yet to grow so to access more advanced features you need to switch back to Portal Management App

Manar_0-1637356993050.png

 

Whats happening in your case that you are restricting the homepage and its child files completely from anyone accept for auth users which they wont have a change to authenticate cause the sign in files are restricted (its a gap and they should prevent us from falling in this mistake) 

 

anyway, to fix it, try the below :

 

 You can use Web Page Access Control Rules to restrict access to the home page, forcing all initial requests to go over to the Sign In page. This was followed up by a note from MVP Andre Margono (https://andz88.wordpress.com/) where he mentioned that he had a blog post on that specific topic.

So, long story short, if you want to force everyone to log into your Portal, simply create a Web Page Access Control Rule of type Restrict Read on the Home page of your Portal – and be sure to set the scope to “Exclude direct child web files” (more on that in the next section).

 

ref link https://www.engineeredcode.com/blog/power-apps-portals-no-anonymous-allowed 

 

I hope this help

 

ragavanrajan
Super User
Super User

Hi @Phineas 

 

Please follow the instructions from @Anonymous . I completely agree portal studio experience is still flaky.  

In addition, in the below thread I have clearly provided instructions on how you can apply web page access control rules and restrict pages 

 

https://powerusers.microsoft.com/t5/Power-Apps-Portals/Web-Role-with-multiple-Web-Page-Access-Control-Rules-not-working/m-p/868412#M6468 

 


------------

If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Users online (1,516)