Error
The action ‘Set-DistributionGroup’, ‘HiddenFromAddressListsEnabled’, can’t be performed on the object ‘Office of Vice Chancellor – Group’ because the object is being synchronized from your on-premises organization. This action should be performed on the object in your on-premises organization.
When trying to edit (Hide this group from address lists) property using office365 exchange.
You can solve this error two ways:
- Using Power Shell Command line
Set-DistributionGroup
-Identity "GroupName"
-HiddenFromAddressListsEnabled $true - Changing msExchangeHideFromAddressList attribute in Active Directory Group