Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Is it possible to use Impersonation using javascript

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

  • Suggested answer
    PranavShroti Profile Picture
    PranavShroti 4,510 on at
    RE: Is it possible to use Impersonation using javascript

    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 !

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Is it possible to use Impersonation using javascript

    Hi,

    Please check below reference -

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

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,622 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans