Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Unanswered

Impersonation with SYSTEM account not work after Migration from V8.2 to V9.0--Javascript

Posted on by 95

Hi there,

I have a javascrit for create a record with Impersonation with SYSTEM account. the code works in V82 environment. but after we migrated to V90, it doesn't work anymore.

the code looks lke this:

req.setRequestHeader("MSCRMCallerID", systemUid);

where systemUid is the is of builtin account named SYSTEM.

I have tried to changed to

req.setRequestHeader("CallerObjectId", systemUid);

still not work.

If I changed systemUid to any other ID of user with System Administrator, it works.

I wonder what happend in migration and what results in SYSTEM account cannot impersonate anymore.

Thanks

  • RE: Impersonation with SYSTEM account not work after Migration from V8.2 to V9.0--Javascript

    Thank you Ossama,

    I tried

    req.setRequestHeader("CallerObjectId", systemUid);

    it did not work.

    Yes, with another System Administrator, it works. I just wonder why the SYSTEM account works in V82 but not work in V90 Dynamics 365. Both are in same active directory.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Impersonation with SYSTEM account not work after Migration from V8.2 to V9.0--Javascript

    Hi,

    Try to check system Account in your active directory , also use the second line :

    req.setRequestHeader("CallerObjectId", systemUid);

    because it's the Preferred one

    in another hand, Use the system administrator is good also.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,570 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,683 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans