web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Hiding web page from A...
Power Apps
Unanswered

Hiding web page from Authenticate Users and allowing Anonymous Users to access it

(0) ShareShare
ReportReport
Posted on by 16

Hello,

I have a requirement to allow access to a web page to Anonymous Users but once any users logged-in then restrict access to that page or logged-in users. I tried with Web Role but it didn't work. Is anyone implement this or know the solution for it?


Thanks


Regards

AR

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @AR19 

    PowerApps Portals has its own forum on the community.  Suggest you post this question there:  I'll provide a link below.  You are likely to get a better response in that forum since PowerApps Portals is a more specialized area of knowledge.

     

    Link To PowerApps Portals Forum

    https://powerusers.microsoft.com/t5/Power-Apps-Portals/bd-p/PowerAppsPortals

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • eka24 Profile Picture
    20,925 on at
    Is this a Portal question. If so asking it at the portal section may help you get a quicker solution.
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @AR19 ,

    Do you want to hide a web page in your Portal for the Authenticate Users and allow Anonymous Users to access it?

     

    Based on the needs that you mentioned, I have made a test on my side, I think the "Web Page Access Control Rules" functionality could achieve your needs.

     

    On your side, you could consider create a "Web Page Access Control Rules" based on the specific web page in your Portal setting:

    6.JPG

    then click "Save" button to save this rule. Then go to the "Web Roles" tab, then click "Add existing web roles" option, and search the "Anonymous Users" web role and add it:

    7.JPG

     

    8.JPG

     9.JPG

     

    After that, edit your Portal, then click the "Sync Configuration" option to make the changes you made in your Portal Setting take effect:

    10.JPG

    then click "Browse website" button to publish your portal.

     

    Please check the following article for more details:

    https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/webpage-access-control#restrict-read

     

    Please take a try with above solution, then check if the issue is solved.

     

    Best regards,

  • ARTECH Profile Picture
    16 on at

    Thanks for reply. 

     

    I tried the given solution. But its hiding the page from anonymous users also. It don't work. 

    I already done some experiment with Authenticated and Anonymous Users Role after that I post this query.

     

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @AR19 ,

    Have you assigned the "Authenticated Users" Role to specific contact registered within your Portal?

     

    Based on the needs that you mentioned, I think the "Web Page Acccess Control Rule" feature could achieve your needs. Please make sure you have assigned the "Authenticated Users" Role to specific contact registered within your Portal, so when this specific contact sign in your Portal, he would be not able to access this web page.

    Note: Please make sure the sign in user is not the Owner of this web page, otherwise, the above configuration may not take effect. You could consider ask your other contacts to sign in your Portal, check if the issue is solved.

    Please check and see if the following blog would help in your scenario:

    https://community.dynamics.com/365/b/readyxrm/posts/powerapps-portals-how-to-hide-or-show-content-based-on-logged-in-user

     

    In addition, please make sure you have clicked "Sync Configuration" button within your Portal to apply the changes you made within your Portal setting.

     

    As an alternative solution, you could also consider apply custom javascript code within the Web page in your Portal setting, then use the javascript code to hide current web page based on the current sign in user.

    Please check and see if the following blog would help in your scenario:

    https://www.engineeredcode.com/blog/powerapps-portals-liquid-and-javascript-better-together

    1.JPG

     

     

    Best regards,

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard