We faced a problem when trying to invite new users to tenant when there are already mail contacts in Exchange with the same SMTP address existing.
Steps to reproduce:
1. Create a mail contact. PS: New-MailContact -Name "Jani Holopainen" -ExternalEmailAddress "jani.holopainen@xxxxx.com"
2. Create a csv file for the invite, e.g.
Email,DisplayName,InviteAppID,InviteReplyUrl,InviteAppResources,InviteGroupResources,InviteContactUsUrl
jani.holopainen@xxxxx.com,Jani Holopainen,00000003-0000-0ff1-ce00-000000000000,https://xxxxx.sharepoint.com/,,9c35112e-5c3e-462f-be87-e631ddaa28a6,https://www.xxxxx.com/
3. Go to Azure AD/Add Users/Users in partner companies and insert csv file above
4. Invite failes with error: "Directory invite operation failed"
Download Errors show:
DisplayName,Email,InviteAppID,InviteAppResources,InviteGroupResources,InviteReplyUrl,InviteContactUsUrl,ErrorStatusMessage
Jani Holopainen,jani.holopainen@xxxxx.com,00000003-0000-0ff1-ce00-000000000000,,9c35112e-5c3e-462f-be87-e631ddaa28a6,https://xxxxxx.sharepoint.com,https://www.xxxxx.com/,Directory
invite operation failed
5. Delete mail contact created in step 1
6. Do step 3
7. Invitation succeeds, status = Email delivered to the email server
8. Now I can also create the Mail Contact with PS in step 1
We can Share sites to external users while there is Mail Contact with same email address. Why doesn't B2B user invites work with the same way? Do we need to first remove all Mail Contacts with duplicate
email addresses before inviting users? Is there a workaround for this? Or is this something that is going to get fixed in the B2B release version?