Diff between context.userid and context.initiatinguserid In MS CRM 2011 Plugin
Situation: A plugin running from a impersonated context
Aim: Get the GUID of the user who has actually fired the plugin and not the GUID of the user under whose context the plugin is registered.
The context gives us both the GUIDs
- context.initiatinguserid: gets the systemuser GUID who actually fired the plugin
- context.userid : gets the impersonated systemuser GUID