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 365 | Integration, Dataverse...
Answered

User Card - User Name field

(2) ShareShare
ReportReport
Posted on by 25
Hi,
 

Is there a way to have the User Name field on the User Card automatically updated when running “Update users from Microsoft 365”?

Currently, when a user’s last name, email address, and user name are changed in Microsoft 365, all the updated information syncs to the User Card in Business Central except for the User Name field.

It would be quite tedious to manually update the User Name in Business Central each time. Is there a way to have this field included in the synchronization?

 

Thank you,

Christina

Categories:
I have the same question (0)
  • Verified answer
    Zhilan Profile Picture
    144 on at
    Hi Christina,  

    By default, the UserName field is linked to multiple tables, so it won’t be automatically overwritten by the "Update users from Microsoft 365" process.  

    You have two options to handle this:  

    1. Update the field manually as you are currently doing.
    2. Implement an extension or integration (requires development).  

    Also, please note that users without a license will not be updated.
  • CH-27022330-0 Profile Picture
    25 on at
    Thank you @Zhilan!
     
    Would it be okay to change the username during business hours, or would you recommend doing this after hours? I’ve noticed that the system responds very slowly when updating that field, and I want to avoid impacting users who are currently logged in.
     
  • Verified answer
    Zhilan Profile Picture
    144 on at
    You are welcome dear,

    For the “Update Users from Microsoft 365” action in Business Central, you can absolutely run that during working hours it’s just syncing user info (like status, full name, email, and license assignments) from your Microsoft 365 tenant into BC and it doesn’t block or lock anything immediately. It can still take a while (up to many hours) to fully show everywhere because of how BC and Microsoft 365 sync works, but it won’t stop users from working while it’s running.

    On the other hand, changing the actual User Name field on a User Card is something I prefer doing outside of peak business hours. That field acts like the internal key in BC, and when you edit it the system prompts that related records will be updated because it’s renaming the user across all linked data. That kind of update can be heavier on the database and may slow things down if people are actively using the system, so scheduling it for a low-usage window (after hours or on weekend) just avoids complaints and performance issues while it runs.

  • Verified answer
    Vishalpandey Profile Picture
    41 on at

    Hello Christina,

    A). AL Extension 

    You can build a small BC extension that hooks into the user sync process and updates the User Name field automatically.
    Basically you'd override or extend the codeunit responsible for the sync.

    B). Manual AL Table Extension

    If you just want the User Name to mirror the Authentication Email / UPN, you can create a simple table extension on the User table that auto-fills User Name whenever Authentication Email changes.

  • CH-27022330-0 Profile Picture
    25 on at
    This is very helpful. Thank you so much @Zhilan and @Vishalpandey!

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 160

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 65 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 51 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans