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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Audit log showing modified by -different user

(0) ShareShare
ReportReport
Posted on by 50,091 Moderator

Hello Experts, 

I have one plugin registered in post update event. I have change the calling user and impersonated  with System Admin user . So now I am facing problem with Audit log where its shows system Admin user name in modified by column.

How to overcome this issue. Could you please guide me.

*This post is locked for comments

I have the same question (0)
  • Radu Chiribelea Profile Picture
    6,667 on at

    Hi Goutam,

    Does the ModifiedOnBehalfBy field show any value for the updated record?

  • gdas Profile Picture
    50,091 Moderator on at

    Thanks Radu for your reply. I am getting  null in this field I have check with querying in database.

  • ashlega Profile Picture
    34,477 on at

    Hi Goutam,

     if the plugin has been impersonated to run under System Admin, that's what the audit log should show.. the user who made the update might not even have permissions to do what the plugin is doing, so, technically, it's the System Admin who's making the changes:)

     in the plugin context, there is UserId and InitiatingUserId - I think they will be different in your scenario. So you might add a user lookup to the entity and store UserId in that lookup every time the plugin runs (the record will still be modified by the Sys Admin, but you will likely see original user name in that additional field)

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans