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 / web role mapping for C...
Power Pages
Unanswered

web role mapping for Contact and Account combination

(0) ShareShare
ReportReport
Posted on by 28

Hello,

 

We have a requirement that a contact can have different web roles based on different accounts. So for example, contact C1 can have role R1 for account A1, and role R2 for account A2. 

 

I tried this, but Power Pages assigns both R1 and R2 roles to the contact, irrespective of the account.

 

Also, we want that all the users of a particular account might have different roles. So this means we can't apply roles at account level.

 

Is there a way to achieve this? I can see we can map roles at contact level. But I could not find a page or solution where I can map roles based on contact and account lookup combination.

 

If this is not possible, how can we achieve this by creating custom mapping table? Your help is greatly appreciated 😊.

 

Thank you.

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    Hi, can you detail more the requirement? perhaps give a practical example of what users should have access to

     

     

  • shubhambhangale Profile Picture
    28 on at

    Hi @OliverRodrigues,

     

    Thanks for responding.

     

    The practical scenario: We have some contacts that could work for multiple accounts for example Microsoft, Google, etc. Now, we want those contacts to have Admin role for Microsoft, but Reader role for Google.

     

    Not only this, we also want that: Admin role will have some set of rights (such as delete other contacts) for Microsoft, but Admin for Microsoft should not be able to delete any contact.

     

    Basically, contact C1 can have role R1 for account A1, and role R2 for account A2. 

    And, role R1 will have page access depending on accounts.

     

    Hope it makes sense?

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

    You could try:

    1. For Admin, create many-to-many: Contact:Account 
    2. For Reader, create many-to-many: Contact:Account 
    3. Create 2 table permissions one for each many-to-many with scope = Contact
    4. For child records they need to access then create 2 sets of Child Permissions (scope=parent), i.e. one set for each many-to-many created, with the parent permission set to the respective permission in (3) 
    5. 2 Web Roles, one for each set of permissions

    Then add the respective Contact to the respective many to many (subgrid) on each respective Account

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 52

#2
Valantis Profile Picture

Valantis 46

#3
Vish WR Profile Picture

Vish WR 29

Last 30 days Overall leaderboard