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
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