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

Aran Billen 516 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

Microsoft Exchange Online
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,171 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rich Matheisen 44,776 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 = "Melvin.McPhucknuckle@contoso.com"
    Set-DistributionGroup -Identity $DL -AcceptMessagesOnlyFrom @{Add=$U}
    

0 additional answers

Sort by: Most helpful