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)

Not getting logged in user,instead getting System User

(0) ShareShare
ReportReport
Posted on by

Hi,

I am calling a plugin on change of stage of BPF . I am trying to get username of logged in user using following guid context.userid or context.initiatinguserid  but it is returning System all the time but the logged in user is different. I have not used impersonation.Run in User context is set to calling user in plugin step. Any Idea why i am getting System user instead of actual logged in user?

*This post is locked for comments

I have the same question (0)
  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    Could you please share the registration details of the plugin?

  • Community Member Profile Picture
    on at

    plugin is registered on pre-operation on update message ,filtering attribute is stepname ,entity is opportunity , execution order is 1 ,Run in user context as calling user ,

  • Suggested answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    Probably this field is getting updated by STSTEM not within the DB transaction when user updates something. Can you verify the audit entries for the same.

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)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans