365 Group doesn't allow to add shared mailbox on the allowed senders

Copper Contributor

Hello guys,


Im trying to add a shared mailbox to be allowed to send e-mails to a 365 group, but it does not even show on the list. This group has the option to only allow senders that i have set.


My questions is, can i set shared mailboxes to do this?

2 Replies
best response confirmed by Pablo_Viebrantz (Copper Contributor)
Sure, but you have to use PowerShell:

Set-UnifiedGroup groupname -AcceptMessagesOnlyFromSendersOrMembers @{add="email address removed for privacy reasons"}
it worked, thank you very much