Open the Exchange admin center in Office 365 > permissions > admin roles.

Add the "Address Lists" roll to an existing roll group or create a new role group with the Address List role. Add your user as a member of the group.  Please wait 15-30 minutes before proceeding, otherwise the correct PowerShell commands may not be available.


Follow the instruction in the article below to connect to Exchange Online PowerShell:

https://docs.microsoft.com/en-us/powershell/exchange/exchange-online/connect-to-exchange-online-powershell/connect-to-exchange-online-powershell?view=exchange-ps


After connecting to Exchange Online, use the applicable PowerShell commands below:

 

---------------------------------------------------------------

 

Get GUID of global address list:

   Get-GlobalAddressList fl nameguid

 

 

---------------------------------------------------------------

 

Or Get GUID of other address list:

 

   List address lists:

      Get-AddressList | fl name

 

 

   Enter name of address list in place of addresslistname below:

      Get-AddressList -Identity "addresslistname" fl nameguid