Others

Update the Microsoft 365 User Company Field with PowerShell

Nimra MalikNimra Malik Nov 20, 2026 868 views

Question details

Update and verify the Company field for a Microsoft 365 user with Exchange Online PowerShell.

Update the Microsoft 365 User Company Field with PowerShell
Product
Microsoft 365 and Exchange Online PowerShell
Device & OS
not provided
Scenario
An administrator wants to change a user's Company field but cannot find the parameter through PowerShell tab completion.
Observed behavior
The Company parameter is not displayed by tab completion, so the administrator needs to enter and verify the command manually.
Before you start

Identify the user's sign-in address and the company name to apply. Sign in with an account that has permission to manage the user; the Company parameter may require Exchange Administrator permissions.

Solution 1Recommended

Set and verify the Company field in Exchange Online PowerShell

Enter the full parameter manually when tab completion does not suggest it.

1
Connect to Exchange Online

Open PowerShell and run Connect-ExchangeOnline. If the command is unavailable, install the Exchange Online PowerShell module with Install-Module ExchangeOnlineManagement, then run Connect-ExchangeOnline and sign in.

2
Check the current value

Run Get-User -Identity user@contoso.com | Format-List Company, replacing the example address with the user's sign-in address.

3
Update the Company field

Run Set-User -Identity user@contoso.com -Company "Company Name", replacing the address and company name with the intended values. Type the complete -Company parameter even if tab completion does not show it.

4
Verify the change

Run Get-User -Identity user@contoso.com | Format-List Company again and confirm that the returned value matches the company name you entered.

Set and verify the Company field in Exchange Online PowerShell
If the update fails: Check the PowerShell error message and your Exchange Online permissions. If the account is synchronized from an on-premises directory, the Company value may need to be changed in the source directory and synchronized to Microsoft 365.
Free Microsoft Office alternative

Work with Office files in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface and support for Microsoft Office formats, making it easy to move your document work. Exchange Online PowerShell is still required to manage the Microsoft 365 Company field.

Free tools for everyday document, spreadsheet, and presentation workCompatible with Microsoft Office formats, including DOCX, XLSX, and PPTXA familiar interface that helps ease migration from Microsoft OfficeOpen and edit user lists in spreadsheets while managing account properties separately in Exchange Online
microsoft office alternative - wps office

Frequently Asked Questions

What if PowerShell does not suggest the Company parameter?

Type the full command manually: Set-User -Identity user@contoso.com -Company "Company Name". Tab completion does not have to display the parameter for you to try it.

How can I see a user's current Company value?

After connecting with Connect-ExchangeOnline, run Get-User -Identity user@contoso.com | Format-List Company, using the actual user's address.

Why might I be unable to update the Company field?

Check the error message and confirm that your account has the required Exchange Online permissions. For a synchronized user, you may need to change the value in the on-premises source directory instead.

Does changing the Company field rename the onmicrosoft.com domain?

No. The Company field is a user property; updating it with Set-User does not rename the tenant's initial onmicrosoft.com domain.