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 "user1@mydomain.com" -Add @{msExchDelegateListLink="CN=TestShare,OU=SM,DC=mydomain,DC=com";msExchDelegateListBL = "testshare@mydomain.com"}

Set-ADUser : Cannot find an object with identity: 'user1@mydomain.com' under: 'DC=mydomain,DC=com'