Forum Discussion
Adding to Distribution List
- Dec 15, 2021Name and Display name are two different parameters, what I'm saying is you should be able to keep display name as "FFF LLLL" while providing a unique value for the Name parameter.
That is the problem. It won't let me create a mail contact. I didn't realize until I saw the message from VasilMichev 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
- John TwohigDec 15, 2021Iron Contributor
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:
- I have a new user FFF LLLL who needs access to some O365 and on-premises resources but doesn't need an O365 mailbox
- I need to add him to a Distribution List with his personal email address.
So I did the following:
- I created the user in our on-premises AD with:
- FirstName: FFF
- LastName: LLLL
- UPN: mailto:Email address removed
- ADConnect then synced the user to our Azure AD and O365
- The user then had access to the O365 resources he needed
- I then tried to add a mail contact with a name FFF LLLL and external email mailto:Email address removed but got the message that "There are multiple recipients matching identity "FFF LLLL". Please specify a unique value."
Am I trying to go about this the wrong way?
- VasilMichevDec 15, 2021MVPThe "bypass" that I was referring to is the ability to specify different values for attributes such as alias (mailNickname) via PowerShell, as the UI automatically populates those based on what you provide in other fields and can cause duplications. So use the -Alias, -Name and so on parameters as necessary.
- John TwohigDec 15, 2021Iron Contributor
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.