Dec 13 2021 01:38 PM
I am not sure if this should be here or in Exchange.
We have a Distribution List where some members have email accounts in our O365 tenant and some members are outsiders. For outsiders we normally add them to Contacts and can then add them to the Distribution List.
We have a user in our tenant who does not have a mailbox. He uses his personal email address. When we try to add him to Contacts we get the message that "There are multiple recipients matching identity "XXX XXXXX". Please specify a unique value."
I suppose I could add him as "XXXY XXXXX" but I assume there must be a better way to do this.
Dec 13 2021 10:38 PM
Dec 14 2021 10:24 AM
When I try Get-Recipient I get the message: "Get-Recipient: The operation couldn't be performed because object 'XXX XXXXX' couldn't be found on 'CY4PR10A02DC004.NAMPR10A002.PROD.OUTLOOK.COM'."
Which makes sense because the user doesn't have a mailbox.
I am not sure what you mean about referencing a user as I don't have a choice in what to enter. Display Name and Email are required fields.
Thanks
Dec 14 2021 11:19 PM
Dec 15 2021 07:02 AM
Dec 15 2021 07:14 AM
That is the problem. It won't let me create a mail contact. I didn't realize until I saw the message from @Vasil Michev that using Powershell would bypass the checking.
I was just about to do that when I saw your message that a mail object doesn't have to be internal. I am not sure how to create one but it gives me a direction to try a couple of things. If they don't work for me right away I will just create the mail contact with Powershell.
Thanks
Dec 15 2021 08:39 AM
It didn't work in PowerShell. New-MailContact doesn't bypass the checking. I still get the same error message.
I don't think I am trying to do something unusual. I think I am missing something so I will try to be more precise about what I am doing:
So I did the following:
Am I trying to go about this the wrong way?
Dec 15 2021 08:46 AM
Dec 15 2021 10:41 AM
I don't see what you are getting at. No matter what parameters I set I get the same error. What it appears to be saying that I can't add a Mail Contact with the name "FFF LLLL" because I have an O365 user with the name "FFF LLLL".
I could set him up with the name "Person formally known as FFF LLLL" but HR really prefers to use people's real names.
Dec 15 2021 11:12 PM
SolutionDec 16 2021 07:40 AM
You are absolutely correct. That works perfectly well.
I was fixated on the name since we have others where the mail contact has the same name as an AAD account. We recently changed our process to get the accounts set up more quickly so that new people could get access to resources more quickly - sometimes even before their start date. Prior to the change, the mail contact was set up before their AD accounts.
I appreciate your patience.
Thanks
Dec 20 2021 04:35 AM
Name is a unique identifier as samAccountName, in the whole domain, you cannot create a contact, user, or group even with the same name, Active Directory will not allow that.