I am trying to add multiple users to a management scope connected to Exchange Online via PowerShell. Here is the cmd I am using, but it is not working. I have tried several variations, but to no avail. I have also tried looking at the Get-Help examples, but could not figure it out from there either. Hopefully just missing something simple :)
Set-ManagementScope "Scope1" -RecipientRestrictionFilter {EmailAddresses -Eq 'user1@company.com' -or EmailAddresses -eq 'user2@company.com'}
User mailbox is not a server object but GROUP is.
Try to add users you want use in filter to some group and use Group as parameter
Example for Group SalesForce
SET-ManagementScope "SCOPE1" -RecipientRestrictionFilte