How it works...

The privileges are simply a way to grant permissions to an entry point, which can be services, to a duty, role, or even directly to a user. Typically, we only add entry points to a privilege, such as menu items. In order to grant access to the user, the system applies the access level to form controls and data sources. When we set the Needed Permission property on form controls, it can have the effect of hiding the control if the privilege doesn't grant the needed permission.

Since we can't extend security privileges, we would always create a new privilege. This is not a real restriction, and helps enforce good practice; we can't get more granular than a privilege, in terms of assigning permissions to a user. We should never ...

Get Extending Microsoft Dynamics 365 for Operations Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.