cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
praneshJ
Helper III
Helper III

How to Restrict read on web page to authenticated users?

Hello Experts,

 

I have one web page on my portal and it is accessible for anonymous users only. I have enabled the permission 'Page available to everyone' so that anonymous users would get access to page.

 

on the other part,

I want to restrict read this page from the authenticated  users who logs in to the portal with username and password.

how should I achieve it?

 

Note : I want to hide the menu item(web page name) as well from the top navigation for this page when authenticate users logs in to the portal.

 

any quick response is really appreciated!!

 

Regards,

Pranesh

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
MarkBiggerstaf
Microsoft
Microsoft

Hello,

 

The restrict read for a web role is well documented in the link below.

Manage page permissions for a portal - Power Apps | Microsoft Docs

 

This is a good blog post on the restrict read and discusses how the link in the main nav will be hidden when users do not have access to the page.

 

https://readyxrm.blog/2020/11/30/power-apps-portals-how-to-show-the-menu-link-for-a-restricted-page

 

I hope you find this information helpful.  Have a good day.

 

Thanks,

 

Mark Biggerstaff

Dynamics Support

View solution in original post

OliverRodrigues
Super User
Super User

Hi

What you want is to enable the page for only anonymous is that it? 

What I would do here is adding a flag in the "Web Link" record for something like "Hide for authenticated users", and you can validate this flag and skip when rendering the menu.

I have a post where I show a customization in the menu by adding a custom flag in the Web Links: http://oliverrodrigues365.com/2020/05/30/power-apps-portals-navigation-menu-setting-up-a-tree-struct...

the final outcome from that post is a bit different, but you would be going down similar path.

 

If you want you want is the opposite, allowing a page only for authenticated users, then you can use the Web Page Access Controls Rules: https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/webpage-access-control

 




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

Power Pages Super User | MVP


Oliver Rodrigues


 

View solution in original post

2 REPLIES 2
MarkBiggerstaf
Microsoft
Microsoft

Hello,

 

The restrict read for a web role is well documented in the link below.

Manage page permissions for a portal - Power Apps | Microsoft Docs

 

This is a good blog post on the restrict read and discusses how the link in the main nav will be hidden when users do not have access to the page.

 

https://readyxrm.blog/2020/11/30/power-apps-portals-how-to-show-the-menu-link-for-a-restricted-page

 

I hope you find this information helpful.  Have a good day.

 

Thanks,

 

Mark Biggerstaff

Dynamics Support

OliverRodrigues
Super User
Super User

Hi

What you want is to enable the page for only anonymous is that it? 

What I would do here is adding a flag in the "Web Link" record for something like "Hide for authenticated users", and you can validate this flag and skip when rendering the menu.

I have a post where I show a customization in the menu by adding a custom flag in the Web Links: http://oliverrodrigues365.com/2020/05/30/power-apps-portals-navigation-menu-setting-up-a-tree-struct...

the final outcome from that post is a bit different, but you would be going down similar path.

 

If you want you want is the opposite, allowing a page only for authenticated users, then you can use the Web Page Access Controls Rules: https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/webpage-access-control

 




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

Power Pages Super User | MVP


Oliver Rodrigues


 

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,477)