adding user into allow messages for sending email to distribution group - delivery management

Aran Billen 941 Reputation points
2024-03-07T09:14:51.75+00:00

Hi all,

I want to add a user into the delivery management part of a distribution group so they can send emails to this group - how do I do this via powershell as doing it using the portal I get a error stating "There are multiple recipients matching the identity "user". Please specify a unique value."

and after removing this user I get the same error even though the user isnt there

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

Accepted answer
  1. Rich Matheisen 47,901 Reputation points
    2024-03-07T19:17:58.96+00:00

    Try this after connecting to Exchange Online (unless you're doing this in an on-site AD organization):

    $DL = "group-identity"
    $U = "******@contoso.com"
    Set-DistributionGroup -Identity $DL -AcceptMessagesOnlyFrom @{Add=$U}
    

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.