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)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans