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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Is it possible to use Impersonation using javascript

(0) ShareShare
ReportReport
Posted on by

Hi All,

How can I use impersonation in java script.

My requirement I need field value for Entity A. But the user does not have permission to the Entity A.

Based on the field value of Entity A. I need to update some values.

 Please help..

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi,

    Please check below reference -

    www.inogic.com/.../impersonation-available-using-web-api-in-dynamics-crm-2016

  • Suggested answer
    PranavShroti Profile Picture
    4,510 on at

    I think that is but tricky. As per this article, user A needs to have basic minimum permissions to the resource. My understanding is, in your case both users should have access to Entity A then only they can impersonate each other.

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

    User account (A) needs the prvActOnBehalfOfAnotherUser privilege, which is included in the Delegate security role. The actual set of privileges that is used to modify data is the intersection of the privileges that the Delegate role user possesses with that of the user who is being impersonated. In other words, user (A) is allowed to do something if and only if user (A) and the impersonated user (B) have the privilege necessary for the action.

    More details:

    docs.microsoft.com/.../impersonate-another-user-web-api

    Hope this helps !

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
NeerajPawar Profile Picture

NeerajPawar 2

#2
jlattimer Profile Picture

jlattimer 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans