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 Pages / PowerApps Portal: Prob...
Power Pages
Unanswered

PowerApps Portal: Problem with Web Page Access Control Rule

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Community,

 

In my PowerApps custom portal, I have a Dynamics 365 contact "John Doe", who is the portal user, and John Doe can login to the portal without problems.

 

On the portal, we have 2 pages - Page A and Page B. I have created a web role "Staff" with a web page access control rule with "Restrict Read" to Page B, and assign this web role to John Doe. This is also the only web role John Doe has. The idea here is that John Doe should only see Page B when login to the Portal. However, when testing this, John Doe can still see both Page A and Page B. I am not sure what could be wrong or missing...

 

On the "Staff" web role, I have set the setting "Authenticated Users" to Yes

Also, for the out of the box "Authenticated Users" web role, I have set the setting "Authenticated Users Role" to No

 

Any insights would be appreciated.

 

Thank you!

Categories:
  • H V Profile Picture
    1,510 on at

    Hi @Anonymous 

     

    As per my understanding, you have given rights of Page B to 'Staff' role that's why Jone can view Page B. But you haven't implement that John Doe can't access the Page A. 

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @hardikv ,

     

    Thanks for your response!

     

    So I have created another web role "Staff Admin" associated with a web page access control rule with Restrict Read to Page A. Again, in my scenario above, I have assigned only the web role "Staff" to John Doe. This time when John Doe logins to the portal, he is getting an Access Denied page, with the message "We're sorry, you don't have permission to view the requested content". I am expecting John Doe to be able to access Page B, which is just a dummy test page with a static text and no entity records. This is just for testing purposes.

     

    Also, in terms of the web page hierarchy, Page A and Page B are on the same level, and both are under the Home page.

     

    Am I missing anything here?

     

    Thanks.

  • H V Profile Picture
    1,510 on at

    Hi @Anonymous

     

    If you want to allow John doe to access PageB and don't allow to access PageA, then everything is right. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @hardikv 

     

    Yes, so that's how I have set up. But I don't understand why it's returning an Access Denied page when John Doe logins to the portal.

     

    John Doe was able to access the portal previously, but this Access Denied page was shown after I made the changes above to put Page A to another different web role. But I don't understand why that would cause this problem...

  • H V Profile Picture
    1,510 on at

    Hi @Anonymous

     

    You have created another role 'Staff Admin' and setup a page access rule to PageA. So, john doe doesn't has 'Staff Asmin' role that's why he is not accessing PageA. If you will give 'Staff Admin' role to john then he will be access PageA.

     

    Page Access Rule for PageA with role 'Staff Admin' means If user has 'Staff Admin' role then user will be accessing the PageA otherwise user will not be access the PageA. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @hardikv ,

     

    Thanks for your reply. That's exactly the intention - I don't want John to access Page A.

     

    However, the Access Denied is not on Page A. When John logins to the portal, there is no Page A menu (which is good because John shouldn't see Page A), but there is no Page B menu too (which is strange because I have given John the web role that would allow him to see Page B). The Access Denied is on the landing page of the portal - as soon as John logins to the portal, The Access Denied page is displayed, and there is no Home page either. Is it because I need to create another web role to give John access to the portal Home page? Because if John couldn't see Home page, then he wouldn't see Page B.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @hardikv ,

     

    I would like to share with you that I have resolved the problems and got it working now.

     

    Thanks for your inputs and help.

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

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 18 Super User 2026 Season 2

#1
Mohsin Ali Profile Picture

Mohsin Ali 18

#3
CU08101843-0 Profile Picture

CU08101843-0 4

Last 30 days Overall leaderboard