Update Exchange Online Global Address List (GAL)
There are situations where you would like to enforce an update of the Exchange Global Address list (GAL) in Office 365. With a few steps this can easily be done!
Requirements:
Exchange Online EXO V2 module, install using: Import-Module -Name ExchangeOnlineManagement
STEP 1: First we will need to make sure that our admin account has the correct permissions. Go to the Exchange Online Admin center, and then to permissions – admin roles and click on the + sign to add a new role
We will now create a new role group. Give it the name Address List Management and assign the role Address lists, and make sure to add the administrator account as a member. Click Save when ready.
Step 2: Our next step will be to go to PowerShell on your local computer and run the following commands. But, after granting permissions, I would recommend to wait at least a minute or 5 before proceeding. First connect with Exchange Online:
Import-Module ExchangeOnlineManagement Connect-ExchangeOnline -UserPrincipalName email@2azure.nl -ShowProgress $true
Next, run:
Get-AddressList
If you get the following error means that the rights haven’t being propagated yet and you need to wait a bit longer:
If everything goes wel, you should see a screen like below:
Step 3: To update the Address List for “All Users”, run the following command:
Set-AddressList -Identity "All Users"
The result should look like this: