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

  • ashlega Profile Picture
    34,477 on at
    RE: Audit log showing modified by -different user

    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)

  • gdas Profile Picture
    50,091 Moderator on at
    RE: Audit log showing modified by -different user

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

  • Radu Chiribelea Profile Picture
    6,667 on at
    RE: Audit log showing modified by -different user

    Hi Goutam,

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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans