Permission to manage address lists

Siegfried Beitl 26 Reputation points
2021-06-24T21:32:20.023+00:00

Hi, I found myself unable to manage in any way (view, change, create, delete) the Exchange Online address lists/books.

PS C:\> Get-AddressList  
Get-AddressList: The term 'Get-AddressList' is not recognized as a name of a cmdlet, function, script file, or executable program.  
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.  
PS C:\>  

The commands are not recognized in Exchange Online PowerShell.

I'm the org admin. I should be able to do it.

I have found here: get-addresslist

In Exchange Online, this cmdlet is available only in the Address Lists role, and by default, the role isn't assigned to any role groups.

I am in the Organization Management role group. I verified that the Address Lists role is enabled for the role group.

I would like to add that I am in a hybrid Exchange environment. I can manage address lists on the local Exchange server but these lists are somehow not synced with Exchange Online. AAD connect is set up and working.

What could be the issue?

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,194 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,359 questions
0 comments No comments
{count} vote

Accepted answer
  1. KyleXu-MSFT 26,211 Reputation points
    2021-06-25T02:38:53.827+00:00

    @Siegfried Beitl

    How do you connect to Exchange online PowerShell? Do you tried to connect to Exchange online in this way: Basic auth - Connect to Exchange Online PowerShell

    Yes, this command is contained in "Address Lists" role, if you are contained in this role, you will could run this command(After modifying permission, you need to reconnect to Exchange online PowerShell again):
    109157-qa-kyle-10-33-53.png
    109129-qa-kyle-10-35-05.png
    I also want to confirm with you that whether you could run other command such as "Get-Mailbox" command for Exchange online mailbox?

    I can manage address lists on the local Exchange server but these lists are somehow not synced with Exchange Online. AAD connect is set up and working.

    Address list is a server-based configuration, it will not sync from Exchange on-premises to Exchange online by default.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Siegfried Beitl 26 Reputation points
    2021-06-28T22:38:19.037+00:00

    @KyleXu-MSFT ty for your reply!

    1) I connect using these commands:

    $UserCredential = Get-Credential  
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection  
    Import-PSSession $Session -DisableNameChecking  
    

    However, I also tried to connect using "Import-Module ExchangeOnlineManagement". It didn't work either.

    Today, I have tried and it worked immediately! I did not change anything since I wrote my original post here. I am now thinking that perhaps I did assign the Address Lists role and it just took some time for the changes to take effect.

    2) As for the syncing of address lists from Exchange on-premises to Exchange online, you mentioned that this does not work by default. Is there a way to make this work. Perhaps you could point me to the documentation for this, if it is possible at all.

    Thank you!


  2. 67L48 1 Reputation point
    2022-05-03T18:31:33.497+00:00

    I don't have a solution, but I can confirm that using EXO V2 2.05, I get the same error. It's very frustrating as we are an extremely small company and I'm literally the only admin. So, if it's a permissions issue, then it ultimately means that the Global Admin is not actually a global administrator. I've tried a few ways to more explicitly give myself the Organization Management role and the Address List permission.

    Still no joy. Any of the GlobalAddressList commands continue to give me the error in the OP. Literally every other command I've tried in the shell has worked fine. Just nothing regarding address lists will be recognized.

    TIME.

    As mentioned a few times above, it takes time for Exchange Admin Center online to apply changes to an acccount. I have the proper permissions. However, I'm not sure which was the magic bullet, as I did all of these things:

    1. Added my account to the Organization Management role
    2. Created a new role that had the Address List permission and assigned myself to that role.
    3. Within Powershell, I used a command set to create an Address List role that had only the Address List permission and assigned myself to it. Note that this was done exclusively within Powershell, whereas the first two were done within EAC.

    One of those 3 things must have worked. Not sure how long it actually took, but around 2 hours had elapsed from when I made the first change to when I was able to access the various Address List commands.

    One thing was certain: it was a permission issue and that's just upside down not to include address list permissions to the global admin account.

    0 comments No comments