In this training session, Matt Peterson from Pragmatic Works explains how to implement form security within model-driven applications using Dataverse. This feature is essential when different users require different form views and levels of control within the same application.
Model-driven apps often serve multiple user groups with different roles. For example:
Without proper form security, users may gain access to forms or functions they should not use, leading to errors, inconsistencies, or data breaches.
Matt demonstrates this by creating a student enrollment application. The process begins with two distinct forms:
This allows intake users to submit applications while administrators can manage and update them.
Next, Matt explains how to create and assign security roles in Dataverse solutions. Security roles define what users can see and do with tables and forms:
Once roles are created, the application is shared with users. When a user logs in, their assigned role determines which forms they see:
However, Matt highlights a common issue: the default form behavior may override security expectations.
An important discovery Matt shares is how default form settings work:
This means that unless specific roles are explicitly assigned to a copied form, no user will see it—even if they have the correct role in the app.
To fix this, administrators must:
Once roles are linked to the correct forms, users will see only the forms they are authorized for. For example, when Lab Admin 12 was assigned both roles, refreshing the app displayed both the Intake and Admin forms.
By following these steps, organizations can streamline their model-driven applications, ensuring users only see and interact with forms relevant to their role. This not only improves security but also simplifies the user experience.
Matt Peterson’s walkthrough provides a clear, practical guide for anyone managing Dataverse form security. Whether handling student enrollments or other business processes, understanding form security is critical to keeping applications efficient and secure.
Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Model Driven Apps and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up-to-date on the latest tips and tricks.