Power Platform Security Model
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 11 read · keep scrolling
✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro
Lesson: Mastering the Power Platform Security Model
Introduction: Why Security is the Foundation of Your Platform
When organizations begin adopting the Microsoft Power Platform, the excitement usually centers on how quickly users can build applications, automate workflows, and visualize data. However, as the footprint of these tools grows, the conversation inevitably shifts from "how do we build this?" to "how do we keep this secure?" The Power Platform security model is not just a checkbox for compliance; it is the fundamental framework that ensures your organization’s data remains accessible only to those who need it, while preventing unauthorized access or data exfiltration.
At its core, the Power Platform security model is a multi-layered architecture that governs who can access what, what they can do with it, and where that data can travel. Without a clear understanding of this model, you risk creating "shadow IT" scenarios where sensitive information is exposed, or conversely, you might inadvertently lock out productive users from legitimate business processes. This lesson will demystify the complexities of the platform's security, covering everything from environment-level access to granular row-level permissions within Dataverse.
Understanding this model is vital because Power Platform security is shared between the platform itself and the underlying Microsoft 365 and Azure Active Directory (now Microsoft Entra ID) identity layers. You are not working in a vacuum; you are building upon a sophisticated infrastructure designed for enterprise-grade control. By the end of this lesson, you will be equipped to design a governance strategy that is both permissive enough to foster innovation and restrictive enough to satisfy the most rigorous security audits.
Not read yet
The Layers of the Power Platform Security Model
The Power Platform security model operates in concentric circles, starting from the broad environment level and narrowing down to the specific field level within a database. To manage this effectively, you must understand how these layers interact. If you fail to secure the outer layers, the inner layers become significantly harder to manage and audit.
1. Environment Level Security
Environments are the containers for your apps, flows, and data. Every environment is tied to a specific geographic region and can be categorized based on its purpose—such as Production, Sandbox, or Trial. The most critical aspect of environment security is determining who can create environments and who can access them.
By default, an environment acts as a boundary. Users who are not assigned a role within a specific environment cannot see or interact with the resources inside that environment, even if they are part of the same tenant. You manage this access through the Power Platform Admin Center, where you assign users to "Environment Maker" or "System Administrator" roles.
2. The Dataverse Security Architecture
Dataverse is the heart of the Power Platform security model. Unlike other data sources like SharePoint or Excel, where security is often handled via file-level sharing, Dataverse uses a sophisticated Role-Based Access Control (RBAC) system. This system allows you to define exactly what a user can do with specific tables, records, or fields.
The Dataverse security model is built on four pillars:
- Security Roles: These define the permissions (Create, Read, Update, Delete) for tables.
- Business Units: These define the organizational structure and scope of data access.
- Teams: These allow for the grouping of users to simplify role assignments.
- Field-Level Security: This provides the ability to restrict access to specific sensitive columns within a table.
Callout: RBAC vs. Share-Based Security It is important to distinguish between the "Share" model used in apps (canvas apps) and the RBAC model used in Dataverse. Sharing an app only gives a user access to the interface of the app. It does not automatically grant them access to the underlying data in Dataverse. You must ensure the user has the appropriate Dataverse security role to read the records the app displays, or they will be met with "Access Denied" errors.
Not read yet
Deep Dive: Dataverse Security Roles and Privileges
Security roles are the primary mechanism for controlling access to data. A security role consists of a collection of privileges that define the actions a user can perform. When you create a custom role, you are essentially selecting which actions (Create, Read, Update, Delete, Append, Append To, Assign, Share) are allowed for each table in your database.
Understanding Access Levels
When configuring a security role, you do not just choose what a user can do; you choose the scope of that action. There are five levels of access in Dataverse:
- Global (Organization): The user can perform the action on all records across the entire organization.
- Deep (Parent: Child Business Units): The user can perform the action on records within their business unit and all child business units.
- Local (Business Unit): The user can only perform the action on records within their own business unit.
- Basic (User): The user can only perform the action on records they own or that are shared with them.
- None: The user has no access to perform this action.
Practical Example: Configuring a Sales Role
Imagine you are setting up a "Sales Representative" role. You want them to be able to create and read "Leads," but you only want them to see the leads assigned to them.
- Read Privilege: Set to "Basic" (User-level). This ensures they only see their own leads.
- Create Privilege: Set to "Business Unit" (Local). This allows them to create new leads that anyone in their department can see.
- Delete Privilege: Set to "None." You do not want sales staff deleting records accidentally.
Tip: Use the Principle of Least Privilege Always start by creating a role with zero permissions and add only what is strictly necessary. It is far easier to troubleshoot an "access denied" error than it is to track down who deleted a record because they had excessive permissions.
Not read yet
Teams and Business Units: Organizing Your Users
In a small organization, you might assign security roles directly to individual users. However, as your organization grows, this becomes an administrative nightmare. Using Teams and Business Units is the industry-standard way to scale your security model.
Business Units (BU)
Business Units are the building blocks of your organizational hierarchy. They define a security boundary. If you have a global company, you might create BUs for "North America," "Europe," and "Asia." A user in the "North America" BU can be prevented from seeing data in the "Europe" BU by setting the security role access level to "Local (Business Unit)."
Teams
Teams are simply groups of users. Instead of assigning a security role to 50 individual sales reps, you create a "Sales Team," assign the "Sales Representative" role to the team, and add the 50 users to the team. When a new sales rep joins, you simply add them to the team, and they automatically inherit the correct permissions.
There are two main types of teams in Dataverse:
- Owner Teams: These teams can own records. This is useful for shared responsibility scenarios where a group of people is collectively responsible for a set of tasks.
- Access Teams: These teams do not own records but are used to grant access to specific records. This is ideal for "ad-hoc" collaboration where you need to give a specific group of users access to a single project or account without restructuring your entire security hierarchy.
Not read yet
Field-Level Security: The Final Frontier
Sometimes, even with robust role-based access, you have specific columns that are too sensitive for everyone to see. For example, in a "Contact" table, you might have a "Social Security Number" or "Salary" field. Even if a manager needs to read the "Contact" record, they might not be authorized to see the salary information.
Field-Level Security (FLS) allows you to secure individual columns. To implement this:
- Enable "Field Security" on the specific column within the table definition.
- Create a "Field Security Profile."
- Add the users or teams who should see the field to the profile and grant them "Read," "Create," or "Update" permissions.
Any user not included in a profile that has access to that field will see the field as empty or masked, regardless of their other security role privileges.
Warning: Performance Considerations While Field-Level Security is powerful, it carries a performance cost. Do not apply it to every column in your database. Use it only for highly sensitive information, such as PII (Personally Identifiable Information) or financial data, to avoid impacting the responsiveness of your applications.
Not read yet
Implementing Data Loss Prevention (DLP) Policies
While Dataverse security controls access to data, Data Loss Prevention (DLP) policies control access to connectors. A DLP policy determines which connectors (like Twitter, Gmail, or SQL Server) can be used together in an environment.
The Connector Categories
DLP policies group connectors into three categories:
- Business: Connectors that contain sensitive business data.
- Non-Business: Connectors that are generally considered personal or public (e.g., social media).
- Blocked: Connectors that are entirely prohibited from being used in the environment.
A common mistake is to leave all connectors in the "Business" category by default. If a user builds a flow that connects to a sensitive internal SQL database and then pushes that data to a personal Twitter account, you have a data leak. By setting up strict DLP policies, you ensure that "Business" connectors cannot communicate with "Non-Business" connectors within the same flow.
Step-by-Step: Creating a DLP Policy
- Navigate to the Power Platform Admin Center.
- Go to Policies and select Data policies.
- Click New policy.
- Name your policy and select the environments it should apply to.
- Assign connectors to the Business, Non-Business, or Blocked groups.
- Save and publish the policy.
Not read yet
Common Pitfalls and How to Avoid Them
Even with the best intentions, administrators often fall into traps that compromise the security of their platform. Let’s look at the most common mistakes.
1. The "System Administrator" Over-Assignment
Many organizations give the "System Administrator" role to too many people. This role bypasses all security checks. If a user is a System Administrator, they can export all data, delete all tables, and change all security settings.
- The Fix: Limit the "System Administrator" role to a very small number of IT staff (ideally 2-3 people). Use the "System Customizer" role for developers who need to build apps but do not need to manage security settings.
2. Ignoring "Share" Permissions in Canvas Apps
Developers often build a canvas app and assume that because they shared the app with the entire company, everyone can see the data. However, the data remains locked until the users are assigned a security role in the Dataverse environment.
- The Fix: Always verify that users have the necessary Dataverse security roles before sharing the app. Use the "Test as" feature in the app designer to ensure your security configuration works as expected.
3. Overlooking Environment Access
Users often forget that an environment itself is a security boundary. If you create a new environment for a project and forget to add the team members, they will never be able to find the environment, let alone the apps inside it.
- The Fix: Use Azure Active Directory groups to manage access to environments. When a user joins the project group in AD, they are automatically granted access to the corresponding Power Platform environment.
4. Lack of Auditing
Security is not a "set it and forget it" task. If you do not monitor who is accessing what, you have no way of knowing if a breach has occurred.
- The Fix: Enable auditing in the Power Platform Admin Center. Regularly review the audit logs for unusual patterns, such as a user exporting large amounts of data or repeated failed login attempts.
Not read yet
Best Practices for Enterprise Governance
To maintain a secure environment, you must adopt a proactive governance mindset. Security is an ongoing process of review and refinement.
| Best Practice | Description |
|---|---|
| Use AD Groups | Always assign security roles to Entra ID (Azure AD) groups rather than individual users to simplify lifecycle management. |
| Automate Governance | Use the Power Platform Center of Excellence (CoE) Starter Kit to monitor environment usage and security compliance automatically. |
| Consistent Naming | Maintain a strict naming convention for security roles and business units to make auditing easier. |
| Regular Audits | Conduct quarterly reviews of security roles to remove permissions for users who have changed roles or left the organization. |
| Enable MFA | Ensure that Multi-Factor Authentication (MFA) is enforced at the tenant level for all users accessing the Power Platform. |
The Role of the Center of Excellence (CoE)
The Microsoft-provided CoE Starter Kit is not just a tool for tracking apps; it is an essential component of a robust security model. It provides dashboards that highlight "orphaned" apps (apps owned by users who have left the company), connectors being used in environments, and high-risk sharing patterns. If you are managing more than a handful of environments, the CoE kit is indispensable.
Not read yet
Code Example: Automating Security Role Assignment
While you can manage security roles through the GUI, enterprise environments often require automation. You can use the Power Apps Management PowerShell module to assign roles to users programmatically. This ensures consistency and reduces human error.
# Install the necessary module if not already present
# Install-Module -Name Microsoft.PowerApps.Administration.PowerShell
# Connect to the Power Platform environment
$environmentName = "Your-Environment-ID"
$userId = "user-guid-from-entra-id"
$roleName = "Salesperson"
# Get the Role ID
$roles = Get-AdminPowerAppRoleDefinition -EnvironmentName $environmentName
$role = $roles | Where-Object { $_.DisplayName -eq $roleName }
# Assign the role to the user
Add-AdminPowerAppRoleAssignment -EnvironmentName $environmentName `
-PrincipalObjectId $userId `
-RoleDefinitionId $role.RoleName
Explanation of the code:
Get-AdminPowerAppRoleDefinition: This command retrieves all available security roles within the specified environment.Where-Object: This filters the list to find the specific role (e.g., "Salesperson").Add-AdminPowerAppRoleAssignment: This is the command that actually links the user to the role within that specific environment.- Note: You must have global administrator or Power Platform administrator permissions to execute these commands.
Not read yet
Common Questions: Security FAQ
Q: If I share a canvas app with "Everyone," does everyone have access to the data? A: No. Sharing an app only grants access to the app's interface. The user must also have a security role in the Dataverse environment that contains the underlying data. Without that, they will see an error message.
Q: Can I restrict access to a specific record based on a user's department? A: Yes. You can use Business Units to segregate data. By setting the security role access level to "Local (Business Unit)," users in one BU will be unable to see or modify records belonging to other BUs.
Q: What happens if I delete a user from Azure AD? A: The user will lose access to all Power Platform environments. However, the records they created will still exist. It is best practice to reassign the ownership of those records to an active user or a service account before de-provisioning the user.
Q: Is Field-Level Security available for all data sources? A: No. Field-Level Security is a feature specific to Dataverse. If your app uses SharePoint or SQL Server as a data source, you must handle security at the source level, not within the Power Platform.
Not read yet
Summary and Key Takeaways
The Power Platform security model is a powerful, layered system that, when configured correctly, provides granular control over your organization's data. It is not something to be feared, but rather something to be mastered through careful planning and consistent application of best practices.
Key Takeaways:
- Defense in Depth: Security should be applied at every layer, from the environment boundary to the individual field level. Never rely on a single security mechanism.
- Principle of Least Privilege: Users should only have the permissions necessary to perform their specific job functions. Start with a "deny-all" approach and grant access incrementally.
- Leverage Groups: Always use Azure Active Directory (Entra ID) groups for assigning security roles and environment access to ensure your security posture scales with your organization.
- DLP is Non-Negotiable: Data Loss Prevention policies are your first line of defense against accidental data exfiltration. Ensure your DLP strategy is defined before you allow widespread adoption of connectors.
- Audit and Monitor: Security is a living process. Use the Center of Excellence kit and built-in audit logs to regularly review who is accessing your data and how they are using it.
- Dataverse is Primary: When building secure applications, prioritize Dataverse as your data source, as it offers the most comprehensive security features compared to third-party connectors.
- Automation is Key: For large organizations, use PowerShell or the Power Platform API to automate the assignment of roles and the configuration of environments to ensure consistency and eliminate manual errors.
By following these principles, you will create a secure, stable, and highly productive environment that empowers your users to innovate while keeping your organization's sensitive data safe. Remember that security is not a project with a start and end date; it is an ongoing commitment to maintaining the integrity and confidentiality of your business processes.
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