Scenario
The user's contact numbers (for example, telephone, fax or mobile) are defined in email signatures. When the signature is applied to emails, these numbers are prefixed with a country code (for example, +1); however, the country code is not present when you check the user data in the Microsoft Office 365 portal.
Reason
The country code is not present in Microsoft Office 365 user data fields, but Exclaimer has synchronized it from your Microsoft Entra ID (formerly Azure AD).
Resolution
To prevent the country code from being included in signatures, you need to update user data in Microsoft Entra ID.
To do this, follow the steps below:
- Open an elevated Windows PowerShell prompt.
To run the PowerShell window with elevated permissions, select Start, then type PowerShell – locate the PowerShell icon and right-click to choose Run as Administrator. -
Confirm that the Microsoft Graph PowerShell modules are installed. Run:
Get-Module Microsoft.Graph.Authentication, Microsoft.Graph.Users -ListAvailable | Select-Object Name, Version -
Connect to Microsoft Graph by running:
Connect-MgGraph -Scopes "User.ReadWrite.All"A sign-in window opens. Sign in with an account that has global administrator permissions.
-
View the user's existing data by running:
Get-MgUser -UserId username@office365domain.com -Property MobilePhone,BusinessPhones | Select-Object MobilePhoneReplace username@office365domain.com with the name of the user you want to update.
-
Update the user's data (for example, the mobile number) by running:
Update-MgUser -UserId username@office365domain.com -MobilePhone "555-429-4792"Replace 555-429-4792 with the required number, without a country code.
-
Confirm the update took effect by running:
Get-MgUser -UserId username@office365domain.com -Property MobilePhone | Select-Object MobilePhone
Once the changes have propagated through Microsoft Entra ID, synchronize the data with Exclaimer. By default, synchronization occurs once a day; however, you can run this manually. For more information, see How to manually synchronize data.