timmcmic / DLConversionV2

MIT License
43 stars 9 forks source link

DL Migration fails because of duplicate recipients #170

Open daimhin opened 2 months ago

daimhin commented 2 months ago

I have been working on doing my first migration and setup a test group that mirrors one of my production groups. When I ran the migration command, it built the group in Exchange Online, but it threw an error on two entries and logged the migration as failed. The log entries I got for one of the users is:

[4/25/2024 5:04:41 PM] - =====
[4/25/2024 5:04:41 PM] - Post Create Errors:
[4/25/2024 5:04:41 PM] - Primary Email Address or UPN: AHC_TEA_TEST@domain.com
[4/25/2024 5:04:41 PM] - External Directory Object ID: d9f2b055-9f61-4120-8dc1-6257687e3fc4
[4/25/2024 5:04:41 PM] - Name: AHC_TEA_TEST
[4/25/2024 5:04:41 PM] - Alias: AHC_TEA_TEST
[4/25/2024 5:04:41 PM] - Attribute in Error: Cloud Distribution Group Member
[4/25/2024 5:04:41 PM] - Error Message: Member username@domain.com unable to add to cloud distribution group.  Manual addition required.
[4/25/2024 5:04:41 PM] - Error Message Details: Ex8155FB|Microsoft.Exchange.Configuration.Tasks.ManagementObjectAmbiguousException|There are multiple recipients matching the identity "username@domain.com". Please specify a unique value.
[4/25/2024 5:04:41 PM] - =====

The two errors were for cross-forest contacts that had been added to the group. I thought this might be the issue, but there is a third cross-forest contact in the group that migrated correctly. These contacts have been synced to the tenant and are available there as a contact. When I ran the Get-Recipient cmdlet for the email address it returns two results. One is the contact, but the other is a guest account where the user has been invited into a team in the tenant.

Name                                 RecipientType
----                                 -------------
username_domain.com#EXT#             MailUser
d80e7381-4895-4d0e-9803-b099fa26c792 MailContact

I can manually add the user to the migrated group afterwards, but would like to figure out if there is any way to resolve this during the migration process.

timmcmic commented 2 months ago

If you want to send the full log to dlconversionv2 at service dot Microsoft dot com or setup a time to review with me I can probably shed some more light.

What's happened though is that the add command users ANR I believe, and when looking for SMTP addresses or querying users to build the membership table it can get an ambiguous response of more than one user. So you have to go back and heal it by hand.

Tim

From: Eric Carr @.> Sent: Monday, April 29, 2024 7:50 PM To: timmcmic/DLConversionV2 @.> Cc: Subscribed @.***> Subject: [timmcmic/DLConversionV2] DL Migration fails because of duplicate recipients (Issue #170)

I have been working on doing my first migration and setup a test group that mirrors one of my production groups. When I ran the migration command, it built the group in Exchange Online, but it threw an error on two entries and logged the migration as failed. The log entries I got for one of the users is:

[4/25/2024 5:04:41 PM] - =====

[4/25/2024 5:04:41 PM] - Post Create Errors:

[4/25/2024 5:04:41 PM] - Primary Email Address or UPN: @.**@.>

[4/25/2024 5:04:41 PM] - External Directory Object ID: d9f2b055-9f61-4120-8dc1-6257687e3fc4

[4/25/2024 5:04:41 PM] - Name: AHC_TEA_TEST

[4/25/2024 5:04:41 PM] - Alias: AHC_TEA_TEST

[4/25/2024 5:04:41 PM] - Attribute in Error: Cloud Distribution Group Member

[4/25/2024 5:04:41 PM] - Error Message: Member @.**@.> unable to add to cloud distribution group. Manual addition required.

[4/25/2024 5:04:41 PM] - Error Message Details: Ex8155FB|Microsoft.Exchange.Configuration.Tasks.ManagementObjectAmbiguousException|There are multiple recipients matching the identity @.**@.>". Please specify a unique value.

[4/25/2024 5:04:41 PM] - =====

The two errors were for cross-forest contacts that had been added to the group. I thought this might be the issue, but there is a third cross-forest contact in the group that migrated correctly. These contacts have been synced to the tenant and are available there as a contact. When I ran the Get-Recipient cmdlet for the email address it returns two results. One is the contact, but the other is a guest account where the user has been invited into a team in the tenant.

Name RecipientType


username_domain.com#EXT# MailUser

d80e7381-4895-4d0e-9803-b099fa26c792 MailContact

I can manually add the user to the migrated group afterwards, but would like to figure out if there is any way to resolve this during the migration process.

- Reply to this email directly, view it on GitHubhttps://github.com/timmcmic/DLConversionV2/issues/170, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKGTN6JVVNVZ3TRWHRMGRITY73MEJAVCNFSM6AAAAABG7HKUJGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3TAMRRGEZTKMQ. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>

timmcmic commented 2 months ago

The script users the get-recipient - if the same address is returned for both that's probably going to be part of the problem. Generally you'd remove the contact once the guest account is in place and mail enabled / unhidden from the GAL.

I'm surprised you do not have proxy address conflicts in your azure sync center.

Tim

From: Eric Carr @.> Sent: Monday, April 29, 2024 7:50 PM To: timmcmic/DLConversionV2 @.> Cc: Subscribed @.***> Subject: [timmcmic/DLConversionV2] DL Migration fails because of duplicate recipients (Issue #170)

I have been working on doing my first migration and setup a test group that mirrors one of my production groups. When I ran the migration command, it built the group in Exchange Online, but it threw an error on two entries and logged the migration as failed. The log entries I got for one of the users is:

[4/25/2024 5:04:41 PM] - =====

[4/25/2024 5:04:41 PM] - Post Create Errors:

[4/25/2024 5:04:41 PM] - Primary Email Address or UPN: @.**@.>

[4/25/2024 5:04:41 PM] - External Directory Object ID: d9f2b055-9f61-4120-8dc1-6257687e3fc4

[4/25/2024 5:04:41 PM] - Name: AHC_TEA_TEST

[4/25/2024 5:04:41 PM] - Alias: AHC_TEA_TEST

[4/25/2024 5:04:41 PM] - Attribute in Error: Cloud Distribution Group Member

[4/25/2024 5:04:41 PM] - Error Message: Member @.**@.> unable to add to cloud distribution group. Manual addition required.

[4/25/2024 5:04:41 PM] - Error Message Details: Ex8155FB|Microsoft.Exchange.Configuration.Tasks.ManagementObjectAmbiguousException|There are multiple recipients matching the identity @.**@.>". Please specify a unique value.

[4/25/2024 5:04:41 PM] - =====

The two errors were for cross-forest contacts that had been added to the group. I thought this might be the issue, but there is a third cross-forest contact in the group that migrated correctly. These contacts have been synced to the tenant and are available there as a contact. When I ran the Get-Recipient cmdlet for the email address it returns two results. One is the contact, but the other is a guest account where the user has been invited into a team in the tenant.

Name RecipientType


username_domain.com#EXT# MailUser

d80e7381-4895-4d0e-9803-b099fa26c792 MailContact

I can manually add the user to the migrated group afterwards, but would like to figure out if there is any way to resolve this during the migration process.

- Reply to this email directly, view it on GitHubhttps://github.com/timmcmic/DLConversionV2/issues/170, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKGTN6JVVNVZ3TRWHRMGRITY73MEJAVCNFSM6AAAAABG7HKUJGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3TAMRRGEZTKMQ. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>