web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / World of an IT guy / How to impersonate in Plugins

How to impersonate in Plugins

migsbeja Profile Picture migsbeja 655

Hello,

The other day a colleague question me how he could impersonate via plugin, so the records were updated with a person that had permissions, instead of the person that didn't have.

There is two way you can do it, first and simpler is when you go to the registration plugin tool when you are editing the step you can put a specific person impersonating that plugin. The catch is that it always be that person.

Like this:

0844.registrationplugin_5F00_impersonate_5B00_1_5D00_.jpg

Or you can do it via code, and you can do filters to see when it should impersonate or not. Just need to set the user id.

Like this:

3568.code_5F00_impersonate_5B00_1_5D00_.jpg

Hope this helps.


Filed under: C#, Dynamics CRM


This was originally posted
here.

Comments

*This post is locked for comments