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 / Portal Access restrict...
Power Pages
Answered

Portal Access restrictions

(0) ShareShare
ReportReport
Posted on by 6

Hi

 

I have an existing Portal and its set of users in Contacts.

I want to create another Portal with a different set of users on Contacts.

 

How do I differentiate between the users access as currently a registered user can access both Portals.

 

Scenario to achieve:

User A = can access Portal A. Cant access Portal B.

User B = cant access Portal A. Can access Portal B.

Categories:
I have the same question (0)
  • Verified answer
    dgoode Profile Picture
    Microsoft Employee on at

    Hi there,

     

     

    I have put together  the following diagram as this tends to come up quite often. I have also included one of our MVP's post surrounding this. Ulrikke does a good job walking peopel through the practicality of setting up the access control rules so no need to reinvent the step by step wheel. Check out the following link here: https://ulrikke.akerbak.com/2020/10/18/use-web-page-access-control-rule-to-lock-portal-behind-authentication/

     

    At a high level, the contacts exist in the same database (environment). Any contact that is a registered user, even with external identities will be able to access and login to the other Power Pages Sites in that environment. To ameliorate this, For each site you need to create root page access control rules for each home page and  set the content scope to all, so that all child webpages inherit the home page access control rule.

     

    You would then create web roles in each portal and associate them to those access control rule for each power pages site. Once this is done, the portals are locked down and the pages can only be accessed by authenticated users who have the specific web roles associated to the access control rules.

    dgoode_0-1655154206491.png

     

     

     

    I have also included an table relationship diagram (ERD) showing the 1:N, N:1 and N:N relationships between all this

    dgoode_1-1655154206497.png

     

     

  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    Be aware that each Portal has 3 default Web Roles of these 2 of them your Contacts inherit their permissions (they are not assigned to the Contact, but the contact has access to what the Privileges attached to those Web Roles give):

    • Authenticated Users (inherits these when signed in)
    • Anonymous Users (any one not logged in inherits these)

    (these 2 roles are most likely why your Contacts have access to both portals)

     

    You will probably want to edit these and uncheck the tick boxes https://docs.microsoft.com/en-us/power-apps/maker/portals/configure/create-web-roles

     

    You may have to watch out for the 3rd one "Administrator" (but usually you don't) as the first User that signs in to the Portal via Active Directory will get associated to the default Contact record that has this Web Role assigned to it (when you fill in the Profile on the Portal the default Contact record gets updated).

  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    @erzascarlet please let us know if above solutions solves your problem or you need any further help with this

  • erzascarlet Profile Picture
    6 on at

    I've created 2 web roles, created 2 Web Page Access Controls Rules.

    Still, one user can access both Portals. 
    Do each Contact need to be associated with a Web Role? Would this mean every new user who registers need to be added to the Web Role?
    Im failing to see where exactly is the user/web role is connected to a portal.portals.png

  • erzascarlet Profile Picture
    6 on at

    Ive done this. No change. Please see my response below

  • erzascarlet Profile Picture
    6 on at

    Thanks for this. Ive looked at the blog and done the same but no change. Please see my response at the bottom of this thread

  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    Have you double checked all Web Roles for the Tickboxes for Anonymous and Authenticated - a Web Role with these ticked does not need to be assigned the a Portal user will just inherit the permissions they give.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 61

#2
11manish Profile Picture

11manish 40

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 36 Most Valuable Professional

Last 30 days Overall leaderboard