Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Answered

Assign different permissions to portal users

(0) ShareShare
ReportReport
Posted on by

Hello the Power Apps Community,

 

In regards of a customer's project, we need to deploy a Power Apps Customer Portal where contact users can retrieve their assets related to their account from a Entity Asset list.

 

The problem is : some of these contact users should not access to this list and must have a message "you don't have permissions to see the records". We worked with the Web Roles and Entity Permissions.

 

Unfortunately, we haven't succeeded to limit some portal users with Web Role. We tried to define different Entity Permission ( one with all privileges and another without) associated to different Web Roles and it didn't work, each contact could see all assets associated to his Account in the list even if the Contact Web Role affected. 

 

I join here some screenshot about our configuration.

 

Anyone may explain me how to define different permissions to portal users created from Contacts?

 

Thanks a lot!

 

AD.

  • Community Power Platform Member Profile Picture
    on at
    Re: Assign different permissions to portal users

    Hi,

    Above all, thank you for your help both.

    We worked with appropriate web roles in order to define which user should have access to the list.

    Finally we found a solution using the web page access control rule, as you talked, where we added appropriate web role on it. Then when a portal user hasn't the right web role, he can't see our web Page Asset in the navigation bar. We attribute web roles to portal users thanks a WF on demand, containing the action Associate Web Role.

     

    If a user (without the correct authenticated web role) types the URL manually of the web page Assets, he accesses to the standard "access denied page".

     

    This behavior is really acceptable for us then we can keep it.

     

    Thank again for your advices!

    ADH.

  • Verified answer
    ragavanrajan Profile Picture
    7,036 Most Valuable Professional on at
    Re: Assign different permissions to portal users

    As mentioned by Microsoft. You are on the right direction.  I have succeeded with the following steps. May be this will help 

     

    Step 1: Create different web roles and assign appropriate users. 

    Step 2: Once the web role is created. Click Related > Contacts > Add Existing Contact and add the appropriate contact. 

    I am assuming you are showing the associated form in some web page. If so  

    Step 3: Select `Web page access control rule` > new > add your associated page 

    Step 4: In the access control rule.> Select "Web Role" > and the created role 

    Step 5: Now click on "Entity List" > choose your entry and make sure > You are filtering it by "Contact" 

    Note: Step 5 is the filter that will allow only logged in users to see the entity list 

     

    Step 6: Click "Entity permission" > Select contact > Make sure: Your scope is "Contact" 

    Step 7: Under "Contact Scope" > Select the appropriate relationship from the drop down. 

     

    In this way they can see the message" You dont have appropriate permissions" 

  • v-xida-msft Profile Picture
    on at
    Re: Assign different permissions to portal users

    Hi @Anonymous ,

    Regarding the needs that you mentioned, I think you are in right direction. If you want to control the contact user to access specific Entity records, the Web Role and Entity Permission could achieve your needs.

     

    Do you assign "Authenticated User" Web Role to these specific contact users (who should not have permission to see these records in Entity Asset list)? Have you assigned other Web Role (which has permission to access ) to these specific contact users?

     

    Based on the Web Role configuration that you mentioned, I think you are in right direction. When you made some changes in your Portal Management, please go to your Portal Designer, then click "Sync Configuration"-> "Browse website" button to make changes you made to your Portal take effect.

     

    In addition, also please consider take a try to create a separated Web Role for your Entity Asset list rather than add it as Child Entity Permission under other Web Role, then check if the issue is fixed.

     

    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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35