Monday, June 20, 2016

MS Dynamics CRM Impersonate a user

Impersonation is used to execute business logic (code) on behalf of another Microsoft Dynamics CRM user to provide a desired feature or service using the appropriate role and object-based security of that impersonated user.

Impersonation involves two different user accounts: one user account (A) is used when executing code to perform some task on behalf of another user (B).

To impersonate a user, set the CallerId property on an instance of OrganizationServiceProxy before calling the service’s Web methods.

1) In General Console Application way




2) with in Plugin or Custom work flow




No comments:

Post a Comment

Get files of last hour in Azure Data Factory

  Case I have a Data Factory pipeline that should run each hour and collect all new files added to the data lake since the last run. What is...