Microsoft 365 Groups restrict senders including a shared mailbox

Zac Avramides 91 Reputation points
2023-03-14T23:37:26.4966667+00:00

I have migrated from using Distribution Lists in Exchange Online. With the DL I was able to restrict who could send to that group using a Shared Mailbox as one of the possible senders.

I am trying to achieve the same function with a Microsoft 365 Group however it does not allow me to list a Shared Mailbox as a sender.

All objects are cloud based in the above. Is this by design? You can't list a Shared Mailbox as an allowed sender to a MS 365 Group?

The use case here is the HR Shared Mailbox sending an email to the All Company MS 365 Dynamic group.

Microsoft Exchange Online
Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
1,995 questions
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,151 questions
{count} votes

Accepted answer
  1. Vasil Michev 94,366 Reputation points MVP
    2023-03-15T07:46:02.3833333+00:00

    Use PowerShell and the following cmdlet/syntax:

    Set-UnifiedGroup groupname -AcceptMessagesOnlyFromSendersOrMembers @{add="shared@domain.com"}

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Jame Xu-MSFT 4,166 Reputation points
    2023-03-15T08:56:20.41+00:00

    Hi @Zac Avramides ,

    I tested it in my environment and really can't select the O365 group, but you could use the Set-UnifiedGroup and the "standard" parameters to configure sender restrictions, just as @Vasil Michev said.

    Refer to: https://techcommunity.microsoft.com/t5/microsoft-365-groups/sender-restrictions-for-office-365-groups/m-p/286372


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    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.

    1 person found this answer helpful.