Scenario 3
This scenario deals with how we can implement impersonation in a plugin. By default, when a plugin is executed, all the calls and actions made inside the plugin are done under the security context of the calling user. In many cases, however, inside a plugin, we may have to make certain calls that would require certain elevated privileges.
For example, in the first scenario that we discussed in this chapter, we wrote code that reads regions and bus region roaster records present in the Dynamics 365 system. However, the user who is entering the student's details in the system may not have access to these two entity records. Therefore, as per the code, if the user tries to enter the student's details into the system, they will get ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access