Add owner to a DL

Glenn Maxwell 10,146 Reputation points
2022-02-21T21:18:54.517+00:00

Hi All

I have a distribution list in exchange online lets say dl1@Company portal .com. i have removed the owner and added new owner to this DL in exchange online admin center, i also want to add the owner in Azure AD for this DL. This is a DL not a unified group, is the below syntax correct?
lets say new owner is user1 and i got the object id from Azure Active Directory.

az ad group owner add --group dl1@Company portal .com --owner-object-id 17f904kl-jhu8-7i89-k90o-123678jo9174

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,211 questions
{count} votes

Accepted answer
  1. Manu Philip 16,991 Reputation points MVP
    2022-02-22T04:13:13.89+00:00

    The cmdlet you mentioned should work. However, have a try on listing the existing owner of the group and remove them first

    List group owners - az ad group owner list --group MyGroupDisplayName
    Remove a group owner - az ad group owner remove --group --owner-object-id
    Add a group owner - az ad group owner add --group MyGroupDisplayName --owner-object-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    

    If the Answer is helpful, please click "Accept Answer" and upvote it

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful