web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Hide Custom Page / Sub...
Power Apps
Unanswered

Hide Custom Page / Subarea / Group based on the Security Role for a Model Driven App?

(1) ShareShare
ReportReport
Posted on by 520

How can I hide a custom page / subarea for a model driven app based on the security role?

Robert94_0-1649693618752.png

 

I have the same question (3)
  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at
    Re: Hide Custom Page / Subarea / Group based on the Security Role for a Model Driven App?

    Hi @Robert94,

    Great question, and unfortunately as of now it's not possible. The only way is to manage that within the custom page to check the roles/privileges and if the user doesn't have the right to display some message. I would suggest to raise that idea at: https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas and I'll vote!

    Cheers!

  • ArisTale Profile Picture
    72 on at
    Re: Hide Custom Page / Subarea / Group based on the Security Role for a Model Driven App?

    https://ideas.powerapps.com/d365community/idea/49bbc57d-2aeb-ed11-a81c-000d3ae39a3f

  • Verified answer
    AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at
    Re: Hide Custom Page / Subarea / Group based on the Security Role for a Model Driven App?

    You can do this I believe as you would with any subarea? just go to the advanced settings for the subarea on the right and base the access on whether or not a user has a certain privilege in dataverse.

    AJ_Z_0-1683545799251.png

    AJ_Z_1-1683545804813.png

  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at
    Re: Hide Custom Page / Subarea / Group based on the Security Role for a Model Driven App?

    Nice @AJ_Z !! Didn't know it was available now for custom page (tables/entities was always there)...it wasnt before!!

  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at
    Re: Hide Custom Page / Subarea / Group based on the Security Role for a Model Driven App?

    @EricRegnier Microsoft are like Santa they come in the night when you are sleeping and leave presents for when you wake up! I sometimes never know when they add something cool in until I find it 🙂

  • whyonearth Profile Picture
    126 on at
    Re: Hide Custom Page / Subarea / Group based on the Security Role for a Model Driven App?

    Took me a second to digest this page, so I'm leaving this note for others who find their way here:

     

    Just so the terminology is clear (based off the words used in the Power Apps Sitemap Designer) this functionality (view based on security role / privileges) exists for Subareas but not for Areas or Groups.

     

    Area (light blue highlight) = grouping of Groups

    Group (yellow highlight) = grouping of subareas

    Subarea (green highlight) = dataverse table, custom page, dashboard, URL, Web resource

    whyonearth_0-1708274639778.png

     

    Hiding whole Areas and Groups would save a lot of duplicate work, especially when an Area contains dozens of Groups with several Subareas each. Will upvote the community request once it stops throwing errors when I try to do so.

  • westerdaled Profile Picture
    636 on at
    Re: Hide Custom Page / Subarea / Group based on the Security Role for a Model Driven App?

    The functionality to show or hide a custom page, depending on the security role of the logged in user still seems a bit non-existent e.g.  A custom page isn't even an option in the Sub Area properties.  Also you can't reference any security groups only a set of OOTB Privileges. 

     

     

    westerdaled_0-1720442178140.png

     

    So is the only option to have a single custom page with multiple screens and for it to workout who can see what, based on the security role of the current user?

  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at
    Re: Hide Custom Page / Subarea / Group based on the Security Role for a Model Driven App?

    Hi @westerdaled, indeed you can't reference security groups/roles, but this was always the case and as designed. The way to do it is to reference a privilege instead that those security role(s) would contain. If it something explicitly you only want one security role to access and the privilege is in many roles then the trick is to create a dummy table and have that specific role reference that dummy table privilege. Hope this helps!

  • westerdaled Profile Picture
    636 on at
    Re: Hide Custom Page / Subarea / Group based on the Security Role for a Model Driven App?

    @EricRegnier 

     

    Thanks for your reply. I think I get what you are saying.  I will trying out your approach in the model driven app.  Incidentally. with a custom page it is quite easy to list the roles a logged in user belongs to, and hide / show parts of the page esp the navigational elements . 

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard