Sharing a Model-Driven App
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② When every section has a ✓, tap Complete lesson.
0 of 10 read · keep scrolling
✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro
Sharing a Model-Driven App: A Comprehensive Guide
Introduction: The Importance of Access Control
In the world of Microsoft Power Platform, building a model-driven app is only half the battle. You might have designed the perfect data model, configured complex business process flows, and crafted a user interface that perfectly aligns with your organizational requirements, but if your users cannot access the app, the solution remains theoretical. Sharing a model-driven app is the critical final step that transitions your development work into a functional tool used by your colleagues.
Unlike canvas apps, which are often shared through direct links or simple email invitations, model-driven apps rely heavily on the underlying Dataverse security model. This means that sharing an app involves more than just granting "read" permissions to a URL. You must ensure that the user has the appropriate security roles, access to the underlying tables (entities), and the necessary licenses to interact with the environment. Understanding this process is vital because it determines not only who can see your app but also what data they can manipulate, view, or delete once they are inside.
Mastering the sharing process prevents common issues like "access denied" errors, data leakage, and administrative overhead. By learning how to manage security roles, business units, and team-based access, you can ensure that your organization remains secure while empowering your users to do their jobs effectively. This lesson will guide you through the technical requirements, the step-by-step configuration, and the best practices for managing access to your model-driven apps.
Not read yet
The Foundation: Understanding the Security Model
Before you share an app, you must understand that model-driven apps are essentially containers for Dataverse data. Because the app depends on Dataverse, the security model is centered on the user’s relationship with the environment and the tables within that environment. If you share an app with a user who does not have permission to view the records in the underlying table, the app will appear empty or display an error message to that user.
Security Roles
Security roles are the primary mechanism for controlling access in Dataverse. A security role acts as a collection of privileges that define what a user can do with specific tables, such as Create, Read, Update, or Delete. When you share a model-driven app, you are essentially ensuring that the user has a security role that grants them at least "Read" access to the tables used in the app, and "Execute" access to the app itself.
Business Units
In more complex organizations, Dataverse uses a hierarchical structure called Business Units. Business units define the scope of data access. A user might have "Read" access to all records in their own business unit but no access to records in a different branch. When sharing apps, you must consider whether the user’s business unit aligns with the data they need to see.
Callout: Security Roles vs. App Permissions It is a common misconception that sharing an app is the same as granting data access. Sharing the app makes the interface visible, but the security roles define what the user can actually do with the data. You must configure both to ensure a functional experience. Think of the app as a window and the security roles as the keys to the rooms inside the building. Sharing the app opens the window, but without the keys (roles), the user cannot enter any rooms to see the furniture (data).
Not read yet
Step-by-Step: How to Share a Model-Driven App
Sharing a model-driven app involves a specific workflow within the Power Apps maker portal. While it seems straightforward, each step requires careful consideration of the user's role and the environment's configuration.
Step 1: Navigate to the Apps List
Log in to the Power Apps maker portal. Ensure you are in the correct environment where your app is hosted. On the left-hand navigation pane, select Apps. Locate the model-driven app you wish to share, click the "..." (more commands) icon, and select Share.
Step 2: Selecting Users or Teams
The sharing panel will appear, listing existing users and teams with access. You can search for users or Microsoft 365 groups in your organization. It is a best practice to share apps with Microsoft 365 groups or Dataverse teams rather than individual users. This makes administration much easier; if someone leaves your team, you simply update the group membership rather than hunting down every individual app they were granted access to.
Step 3: Assigning Security Roles
Once you have selected the users or groups, you must assign them a security role. The panel will display a list of available roles in the environment.
- System Administrator/Customizer: Avoid assigning these roles for daily app usage.
- Basic User: A standard role that provides entry-level access to the environment.
- Custom Roles: Most production apps require a specific custom security role that provides access to the tables used by the app.
Step 4: Finalizing and Testing
After selecting the role, click Share. The system will automatically grant the necessary permissions. It is highly recommended to log in as one of the target users or use a test account to verify that they can see the app in their Power Apps home page and that the data loads correctly.
Note: When you share an app, the system does not automatically send an email notification to the user. You should communicate the app URL directly to your users or provide it via your organization's internal portal or Microsoft Teams channel.
Not read yet
Advanced Access Control: Teams and Business Units
As your organization grows, managing individual access becomes unsustainable. This is where Dataverse Teams come into play. A team is a group of users who share the same security requirements.
Owner Teams vs. Access Teams
There are two primary types of teams in Dataverse that you should understand:
- Owner Teams: These teams own records. If you assign a security role to an Owner Team, every member of that team inherits the privileges associated with that role. This is the most common way to manage app access for departments like "Sales" or "Customer Support."
- Access Teams: These teams do not own records and are not assigned security roles. Instead, they are used for ad-hoc collaboration where specific users need access to a single record without having broad permissions across the entire table.
By utilizing Owner Teams, you can simplify the sharing process. Instead of sharing an app with 50 individuals, you share it with one "Sales Team" group. When a new salesperson joins, you simply add them to the Microsoft 365 group that is mapped to the Dataverse Owner Team, and they automatically receive access to all relevant apps and data.
Not read yet
Best Practices for Enterprise Sharing
To maintain a secure and manageable environment, follow these industry-standard practices when sharing your model-driven apps.
1. Principle of Least Privilege
Always provide the minimum level of access required for a user to perform their job. If a user only needs to view reports, do not give them "Delete" or "Write" permissions on the underlying tables. Create a custom security role that contains only the necessary privileges.
2. Use Security Groups for Environments
You can link an entire Power Platform environment to an Azure Active Directory (Microsoft Entra ID) security group. If a user is not a member of that security group, they cannot access any apps within that environment, even if you explicitly shared an app with them. This is an excellent "safety net" for enterprise-wide security.
3. Document Your Security Roles
Security roles can become complex. Maintain documentation that outlines which roles grant access to which apps and why. This is crucial for audits and for troubleshooting when a user reports that they cannot see a specific button or record.
4. Regularly Audit Access
Every few months, review the list of users and teams who have access to your apps. Remove users who have changed departments or left the organization. This helps maintain a clean environment and minimizes the surface area for potential data exposure.
Not read yet
Common Pitfalls and Troubleshooting
Even experienced makers encounter issues when sharing apps. Here are the most common problems and how to resolve them.
"I shared the app, but the user sees a blank screen."
This is almost always a security role issue. The user has access to the app container, but they lack the "Read" privilege on the tables that populate the app's views.
- The Fix: Check the security role assigned to the user. Ensure that the table permissions are set to at least "User" level read access for the records they need to see.
"The user can see the app, but the buttons are missing."
Model-driven apps use "Command Bar" logic that can be hidden based on permissions. If a user does not have "Write" access to a record, the "Edit" button will not appear for them.
- The Fix: Verify the "Write" or "Append" privileges in the security role. Sometimes, specific business process flows or custom JavaScript also hide buttons based on user attributes.
"The user gets an 'Insufficient Permissions' error."
This happens when a user tries to open a record or perform an action that their role does not permit.
- The Fix: Use the "Download Log" feature in the error dialog. It will often explicitly state which privilege (e.g.,
prvReadAccount) is missing. Add this privilege to the user's security role.
Warning: Never assign the "System Administrator" role to a standard business user just to "fix" an access issue. This grants them full control over the entire environment, including the ability to delete data, modify system settings, and export sensitive information. Always take the time to create or update a specific, limited-scope security role.
Not read yet
Comparison: Canvas Apps vs. Model-Driven Apps Sharing
It is important to distinguish the sharing model of canvas apps from model-driven apps, as they are fundamentally different.
| Feature | Canvas Apps | Model-Driven Apps |
|---|---|---|
| Primary Driver | User-based email sharing | Security Role-based access |
| Data Access | Independent of app access | Dependent on Dataverse security |
| Environment Scope | App-specific permissions | Environment-wide roles |
| Groups | Supported | Fully integrated with Teams/AAD |
| Complexity | Low | High (requires Dataverse knowledge) |
As shown in the table, model-driven apps are inherently more complex to share because they are tied to the structural security of the Dataverse database. While canvas apps allow you to share a link easily, model-driven apps require a holistic view of the user's role within the organization's data structure.
Automating Security: The Role of Microsoft Entra ID
For large organizations, manually adding users to Dataverse teams is inefficient. You can automate this by syncing your Microsoft Entra ID (formerly Azure AD) groups with Dataverse.
When you create a group in Microsoft Entra ID, you can map it to a Dataverse team. When you add a member to the Entra ID group, they are automatically added to the Dataverse team and inherit the security roles assigned to that team. This "group-based licensing and security" approach is the gold standard for enterprise Power Apps management.
Example: Syncing a Group
If your organization has a "Field Service" group in Entra ID:
- Navigate to the Power Platform admin center.
- Select the environment and go to Settings > Users + permissions > Teams.
- Create a new team and set the "Team type" to "AAD Security Group".
- Enter the name of your Entra ID group.
- Assign the "Field Service Representative" security role to this team.
Now, whenever HR adds a new technician to the Entra ID group, they gain access to the model-driven app and the necessary data permissions automatically. This eliminates the need for manual intervention by the app maker.
Not read yet
Deep Dive: Custom Security Roles
Sometimes, the out-of-the-box roles (like "Salesperson" or "Customer Service Representative") do not perfectly fit your app's requirements. In these cases, you should create a custom security role.
Creating a Custom Role
- Go to the Power Platform admin center.
- Select the environment, then Settings > Users + permissions > Security roles.
- Click New role.
- Give it a descriptive name (e.g., "Internal Auditor - Limited").
- Navigate through the tabs (Core Records, Marketing, Sales, etc.) to set specific privileges for each table.
Understanding Privilege Levels
Each privilege (Create, Read, Write, Delete, Append, Append To, Assign, Share) has a depth level:
- None: No access.
- User (Yellow circle): Access to records owned by the user.
- Business Unit (Green triangle): Access to records in the user's business unit.
- Parent: Child Business Units (Blue inverted triangle): Access to records in the user's BU and any sub-BUs.
- Organization (Full green circle): Access to all records in the environment.
Always start with the most restrictive level and expand only when necessary. For example, a standard user usually needs "User" level access for most tables, but might need "Organization" level access for "Read-only" lookup tables like "Countries" or "Product Categories."
Not read yet
Monitoring and Auditing Access
Even after you have shared your app, you should monitor its usage. The Power Platform Admin Center provides analytics that help you see which apps are being used and by whom.
Using Audit Logs
If you need to know who accessed a specific record or when a user logged in, you can enable auditing on the environment and specific tables. This is critical for compliance and security. If a user claims they didn't delete a record, the audit logs will provide a timestamped history of exactly what happened.
Proactive Communication
Always maintain a channel of communication with your users. If you are planning to update a security role or change the app's structure, notify them in advance. Unexpected changes to permissions can halt business processes and lead to frustration.
Summary Checklist for Sharing
To ensure a successful deployment of your model-driven app, use this checklist:
- Identify Target Audience: Have you defined exactly who needs access?
- Group vs. Individual: Are you using a Microsoft 365 group or Dataverse Team for access?
- Review Roles: Have you verified the security roles needed for the app?
- Test Permissions: Have you tested the app with a non-admin account?
- Communication: Have you notified the users and provided the link?
- Governance: Have you audited the access list recently?
Not read yet
Conclusion and Key Takeaways
Sharing a model-driven app is a fundamental skill that bridges the gap between development and end-user productivity. By moving away from individual user management and toward group-based security, you ensure that your application remains maintainable, secure, and scalable.
Key Takeaways
- Security Roles are Mandatory: You cannot share a model-driven app effectively without assigning appropriate security roles in Dataverse. The app is merely a shell; the security roles provide the substance of access.
- Prioritize Groups Over Individuals: Always share with Dataverse teams or Microsoft 365 groups. This simplifies onboarding, offboarding, and auditing significantly.
- The Principle of Least Privilege: Start with minimal permissions and grant more only when a clear business need arises. This protects your data from unauthorized access or accidental modification.
- Test Like a User: Never assume that because you can see the app, everyone else can. Always verify access with a standard user account to ensure that all table permissions and dependencies are correctly configured.
- Use Entra ID Integration: Leverage your organization's existing identity management systems to automate access. This reduces administrative overhead and ensures that security policies are consistently applied.
- Troubleshoot with Logs: When access issues occur, use the error logs to identify the specific missing privilege. Avoid the temptation to assign broad "System Administrator" roles as a quick fix.
- Documentation Matters: Keep a record of which groups have access to which apps. This is invaluable for future audits and helps other developers understand the security landscape of your environment.
By following these principles, you will be able to manage your Power Apps environment with confidence, ensuring that the right people have the right access to the right data at the right time. As your organization’s needs evolve, these foundational practices will allow you to scale your solutions without compromising security or usability.
Not read yet
Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.
- Introduction to Microsoft Power Platform
- Introduction to Microsoft Power Platform Quiz5q
- Value of Power Apps for Building Applications
- Value of Power Apps for Building Applications Quiz5q
- Value of Power Automate for Process Automation
- Value of Power Automate for Process Automation Quiz5q
- Value of Power Pages for Building Websites
- Value of Power Pages for Building Websites Quiz5q
- Value of Connectors for Integration
- Value of Connectors for Integration Quiz5q
- Value of Microsoft Dataverse for Business Data
- Value of Microsoft Dataverse for Business Data Quiz5q
- Dataverse vs Traditional Databases
- Dataverse vs Traditional Databases Quiz5q
- Tables Columns and Relationships in Dataverse
- Tables Columns and Relationships in Dataverse Quiz5q
- Business Logic Options in Dataverse
- Business Logic Options in Dataverse Quiz5q
- Creating Tables and Columns Through Conversations
- Creating Tables and Columns Through Conversations Quiz5q
- Importing and Exporting Data Options
- Importing and Exporting Data Options Quiz5q
- Dataverse Business Rules
- Dataverse Business Rules Quiz5q
- Dataverse Calculated and Rollup Columns
- Dataverse Calculated and Rollup Columns Quiz5q
- Dataverse Security Roles
- Dataverse Security Roles Quiz5q
- Dataverse Teams Integration
- Dataverse Teams Integration Quiz5q
- Dataverse File and Image Columns
- Dataverse File and Image Columns Quiz5q
- Connecting to Data Sources with Connectors
- Connecting to Data Sources with Connectors Quiz5q
- Common Controls in Canvas Apps
- Common Controls in Canvas Apps Quiz5q
- Building Responsive Pages with Containers
- Building Responsive Pages with Containers Quiz5q
- Capabilities of Copilot Controls
- Capabilities of Copilot Controls Quiz5q
- Sharing a Canvas App
- Sharing a Canvas App Quiz5q
- Cloud Flows and Desktop Flows
- Cloud Flows and Desktop Flows Quiz5q
- Cloud Flow Templates
- Cloud Flow Templates Quiz5q
- Connector Triggers and Actions
- Connector Triggers and Actions Quiz5q
- Power Automate Use Cases
- Power Automate Use Cases Quiz5q
- Power Automate Apps and Portals
- Power Automate Apps and Portals Quiz5q
- Desktop Flow Actions
- Desktop Flow Actions Quiz5q
- Process Mining Overview
- Process Mining Overview Quiz5q
- Loops and Branching in Cloud Flows
- Loops and Branching in Cloud Flows Quiz5q
- Creating Cloud Flows with Triggers
- Creating Cloud Flows with Triggers Quiz5q
- Creating Flows Through Conversations
- Creating Flows Through Conversations Quiz5q
- Running and Monitoring Cloud Flows
- Running and Monitoring Cloud Flows Quiz5q
- Testing a Cloud Flow
- Testing a Cloud Flow Quiz5q
- Sharing a Cloud Flow
- Sharing a Cloud Flow Quiz5q
- Creating Sites Using Copilot
- Creating Sites Using Copilot Quiz5q
- Design Studio Workspaces
- Design Studio Workspaces Quiz5q
- Creating and Modifying Pages
- Creating and Modifying Pages Quiz5q
- Configuring Power Pages Components
- Configuring Power Pages Components Quiz5q
- Modifying a Power Pages Theme
- Modifying a Power Pages Theme Quiz5q
- Power Pages Authentication Options
- Power Pages Authentication Options Quiz5q
- Power Pages Web Roles
- Power Pages Web Roles Quiz5q
- Power Pages Table Permissions
- Power Pages Table Permissions Quiz5q
- Power Pages List and Form Components
- Power Pages List and Form Components Quiz5q
- Power Pages Publishing and Deployment
- Power Pages Publishing and Deployment Quiz5q
Spend your points to unlock exam-style practice questions
Spend points to unlock PL-900 exam-style practice questions.
Practice for PL-900