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 Apps / Security roles and Cre...
Power Apps
Answered

Security roles and Create, Delete, Assign, Share buttons behaving strangely

(0) ShareShare
ReportReport
Posted on by 76

This seems like a bug to me but I'm not sure of the cause

 

I am building a custom model driven app, with four security roles

 

When the person testing is assigned a security role which should not be able to delete a particular entity record, they can see the "Delete" button on the entity but receive an error when they try to click it: "You do not have prvDeletePrefix_EntityName"

 

Likewise they can see buttons to Create, Assign and Share but receive an error when their security role does not allow it

 

BUT, when they use a security role which DOES have the delete privilege for a custom entity, they can't see the Delete button!!

 

The most bizarre thing is that when the user tries to perform the same action via the Advanced Find, the app applies the security role correctly and the buttons are only visible if the user has the privilege to perform that action.

 

What's going on here? Is it something that Publish all customisations will fix or are there bugs with the ways these buttons work in Model Driven Apps?

Categories:
  • AU-22040756-0 Profile Picture
    76 on at

    This happened when the user was switched from one to another several times in one day so I wonder if there's some kind of server side cache which is getting mixed up and causing the problem?

     

    The tester has tried clearing browser cache, restarting laptop, incognito mode, different browser and still can get the same issues

     

    Any ideas?

  • Verified answer
    AU-22040756-0 Profile Picture
    76 on at

    The tester tried the same tests again today in incognito mode and that appears to have resolved the issues

     

    Not sure what happened the first time but perhaps they got their mixed up between incognito and normal windows

     

    So it looks like this was down to browser caching

  • alrezac Profile Picture
    Microsoft Employee on at

    Hi,

     

    I am glad that you were able to get this resolved. This definitely looks like some odd cashing issue. Hopefully this will prove to be useful for future communities users. Thanks for the follow up!

     

    Regards,

     

    Alex

     

    -------

     

    Community Support Team _ Alex Rezac
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard