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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

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

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Community Member Profile Picture
    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.

  • fordersheng@hotmail.com Profile Picture
    95 on at
    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 107 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 89

#3
#ManoVerse Profile Picture

#ManoVerse 58

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans