Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

How to Dynamically Control Visibility Based on Roles and Permissions in PowerApps?

(2) ShareShare
ReportReport
Posted on by 11

Hello,

I'm working on a Model-Driven app in PowerApps, where I'm managing roles and permissions through custom tables. Here's a brief overview of my setup:

  • Role Table: Contains role names (e.g., Manager, Director).
  • Permission Table: Lists permissions (e.g., Proposal).
  • PermissionByRole Table: Associates roles with specific permissions and actions (e.g., Manager has Read permission, Director has CRUD permission on Proposal).

My challenge is managing the dynamic visibility of forms, views, and controls based on these roles and permissions. For instance:

  • Currently, the Manager role has only the Read permission on the Proposal, while the Director role has CRUD permissions.
  • If I later add more permissions to the Manager role (e.g., Update), I want the corresponding forms and controls to automatically reflect this change without needing to create separate views and forms.

I'm trying to avoid hardcoding views and forms for each role and permission combination, as I anticipate adding more roles and permissions in the future. Could you guide me on the best approach or PowerApps feature to handle this scenario dynamically?

Thank you!

Categories:

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard