Cannot set restriction settings in distribution group

Hi! I cannot set restriction settings in my distribution group. Action ‘Set-DistributionGroup’, ‘AcceptMessagesOnlyFromSendersOrMembers’ are the issue, with error message showing up as: “ [action] can’t be performed on the object ‘ContosoALL’ because the object is being synchronised from your on-premises organisation .” I have migrated all of my users to Office 365 and AAD connect. How can I fix this right now?

Hi @Aiden,

You can please refer this communication in the post and see this solve your issue