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 / Multiple web roles for...
Power Pages
Answered

Multiple web roles for same entity with different entity permissions isn't working as expected

(0) ShareShare
ReportReport
Posted on by 16

Hi All

 

I am in a situation where I have an entity linked to Account. e.g. Entity A,

 

I am trying to create 2 web roles, 1 read only, 2 Edit 

 

I did create 2 of those entity permission and 2 web roles.

 

Entity Permissions : 1, EntityA_ReadOnly. 2, EntityA_Edit and created 2 web roles accordingly. and assigned to those web roles respectively. Web roles in general section I have No for both Authenticated Users Role and Anonymous Users Role.

 

After that I have assigned the web role to a external user (contact) now the user only has role EntityA_ReadOnly but when I go to the portal I can see a submit button and the user can modify the Entity A. 

What I did again is from yje EntityA_Edit entity permission I removed the Edit permission and now the user is not able to edit but only able to read, this is what I want to achieve. the user only has the read only web roles assigned if you are thinking if I have assigned both the roles.

 

Now if I go back and give edit permission on that EntityA_Edit entity permission the same user can make changes to the data, without the user having the Edit web role, it is driving me crazy I must be missing a step somewhere. The scope from Entity A to Account is a Parent Scope and Account entity permission is Read Only.

 

I have put this question on one of the thread as a reply question thought it would be better to have it's own question.

 

Your help is highly appreciated.

 

thanks

Binod

Categories:
  • MarkBiggerstaf Profile Picture
    Microsoft Employee on at

    Hello Binod,

     

    This is unusual behavior you are explaining in your post.  With the Read Only permission, we should not be seeing the Submit button.

    My recommendation would be to open a Support Ticket for a full investigation.

     

    Thanks,

     

    Mark Biggerstaff

    Dynamics Support

  • BinodNepal Profile Picture
    16 on at

    Thanks Mark, I have raised a support ticket.

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

    Hi

     

    By any chance do you also have another Entity Permissions to that entity assigned to the Authenticated Web Role?

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

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

    Hi

     

    By any chance do you also have another Entity Permissions to that entity assigned to the Authenticated Web Role?

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • BinodNepal Profile Picture
    16 on at

    Hi Oliver

     

    I do not have any other entity permissions on that Entity beside those 2 mentioned above, Read only and Update. Parent entity permission is an account for that entity and account do have other child permissions. Do you think the child permissions on account might have that effect? If so it will still be an issue from what I am trying to achieve. 

     

    thanks for your reply.

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

    Can you place below liquid code into maybe your Web Page (Content web page) or a Web Template.. this will show you the current user's roles, so we can understand if that user has both Readonly and Edit Web Role

    {% for r in user.roles %} 
     <p> >>> Role: {{ r }}</p> 
    {% endfor %}
     

     

  • BinodNepal Profile Picture
    16 on at

    Hi Oliver

     

    I have placed the code and I am getting this:

     

    >>> Role: Product Record - Readers

    >>> Role: Factory Audit Authenticated User

     

    the second role has "Authenticated Users Role" in it, the user doesn't directly has that role assigned, 

     

    thanks

    Binod

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

    Yes that's expected, the authenticated Web Role is always assigned to a user once they log in to the Portals

     

    that's why my previous question I asked if you have any other Entity Permissions to the authenticated Web Role, as this could be conflicting

     

    by any change would the "Factory Audit Authenticated User" Web Role represent your "Edit" Web Role?

  • BinodNepal Profile Picture
    16 on at

    the "Factory Audit Authenticated User" Web Role has write permissions to other entity and not to the Entity mentioned. 

  • Christian Leverenz Profile Picture
    1,214 on at

    Hi together,

    i had a call from a colleague today with the same sort of issue.  From my perspective, he set up everything right, but saw too many accounts. It ended up in deleting the old contact, setting it up again, assigning the same roles again and it worked. In my opinion, this was a cache issue. Unfortunately i can not prove due to the deletion...

    We cleared the cache several times and restarted the portal several times without success. So, sometimes the restart (which should really empty everything) did not work which i also had in another project, where we literally had to switch it off and on again which then resolved our cache issues.

    Caching is great but for development purposes it is obviously a pain in...

     

    So, lesson learned: when restarting the portal make sure that the portal really disappears for a few moments...

    have fun,

      Christian

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
Mohsin Ali Profile Picture

Mohsin Ali 18

#2
11manish Profile Picture

11manish 16 Super User 2026 Season 2

#3
anirudhev Profile Picture

anirudhev 4

Last 30 days Overall leaderboard