I think automapping is not working. so i tried the below syntax plz hep correct me the syntax
i am getting error (user1 is cloud user and testshare is shared mailbox which is onprem)
Set-ADUser -Identity "mailto:user1@mydomain.com" -Add @{msExchDelegateListLink="CN=TestShare,OU=SM,DC=mydomain,DC=com";msExchDelegateListBL = "mailto:testshare@mydomain.com"}
Set-ADUser : Cannot find an object with identity: 'mailto:user1@mydomain.com' under: 'DC=mydomain,DC=com'