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
Solved! Go to Solution.
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
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
Power Apps Portals Super User
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
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
Power Apps Portals Super User