Hi All
i am using exchange 2016 hybrid environment. i have created remote shared mailbox on exchange onprem and also i have created mail enabled security group in exchange onprem.
When i try to execute the below syntax in exchange online i am getting the below error. is this not supported? I also would like to provide SendAs permissions. experts guide me.
Add-MailboxPermission -Identity sharedmailbox@Company portal .com -User mailenabledsecuritygroup@Company portal .com -AccessRights FullAccess -Automapping $false -InheritanceType All
WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance of an object.
Object reference not set to an instance of an object.
+ CategoryInfo : NotSpecified: (:) [Add-MailboxPermission], NullReferenceException
+ FullyQualifiedErrorId : System.NullReferenceException,Microsoft.Exchange.Management.RecipientTasks.AddMailboxPermission
+ PSComputerName : outlook.office365.com