Issue with Azure AD Connect synchronization for DistributionGroup SamAccountName

%3CLINGO-SUB%20id%3D%22lingo-sub-3012977%22%20slang%3D%22en-US%22%3EIssue%20with%20Azure%20AD%20Connect%20synchronization%20for%20DistributionGroup%20SamAccountName%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3012977%22%20slang%3D%22en-US%22%3E%3CP%3ECreated%20new%20with%26nbsp%3BDistributionGroup%20with%20Exchange%20Server%202016%20CU21%20using%20following%20command%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3ENew-DistributionGroup%20-Name%20%22bsHyb'G7564%22%20-DisplayName%20%22bsHyb.G7564%22%20-SamAccountName%20%22bsHyb-G7564%22%20-PrimarySmtpAddress%20%22bsHybG7564%40mydomain2345.com%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20have%20checked%20results%20by%3A%3C%2FP%3E%3CP%3EGet-DistributionGroup%20bsHyb*%20%7C%20select%20Name%2C%20DisplayName%2C%20SamAccountName%2C%20Alias%2C%20RecipientTypeDetails%2C%20PrimarySmtpAddress%2C%20Guid%2C%20LegacyExchangeDN%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EName%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%3A%20bsHyb'G7564%3CBR%20%2F%3EDisplayName%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%3A%20bsHyb.G7564%3CBR%20%2F%3ESamAccountName%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3A%20bsHyb-G7564%3CBR%20%2F%3EAlias%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3A%20bsHyb_G7564%3CBR%20%2F%3ERecipientTypeDetails%20%3A%20MailUniversalDistributionGroup%3CBR%20%2F%3EPrimarySmtpAddress%20%3A%20bsHybG7564%40mydomain2345.com%3CBR%20%2F%3EGuid%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3A%2073711cc8-ad1c-43cd-8747-d98095871f44%3CBR%20%2F%3ELegacyExchangeDN%26nbsp%3B%20%26nbsp%3B%3A%20%2Fo%3DSourceDomain%20org%2Fou%3DExchange%20Administrative%20Group%20(FYDIBOHF23SPDLT)%2Fcn%3DRecipients%2Fcn%3D34e7147922ad4366bfff6947c209d8a7-bsHyb'G%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EIssue%20that%20Azure%20AD%20Connect%20sync%20is%20auto-generating%26nbsp%3BSamAccountName%20with%20o365%20tenant%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGet-DistributionGroup%20bsHyb*%20%7C%20Format-Table%20-Auto%20Name%2CDisplayName%2CSamAccountName%2CmailNickname%2CAlias%2CGroupType%2CRecipientTypeDetails%3C%2FP%3E%3CP%3EName%20%3A%26nbsp%3BbsHyb'G7564%3C%2FP%3E%3CP%3EDisplayName%20%3A%26nbsp%3B%26nbsp%3BbsHyb.G7564%3C%2FP%3E%3CP%3ESamAccountName%20%3A%26nbsp%3B%26nbsp%3B%24U1ME60-Q1PUBMRD1F98%3C%2FP%3E%3CP%3EmailNickname%20%3A%26nbsp%3B%3C%2FP%3E%3CP%3EAlias%20%3A%26nbsp%3BbsHyb_G7564%26nbsp%3B%3C%2FP%3E%3CP%3EGroupType%20%3A%26nbsp%3BUniversal%26nbsp%3B%3C%2FP%3E%3CP%3ERecipientTypeDetails%20%3A%26nbsp%3BMailUniversalDistributionGroup%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20to%20sync%26nbsp%3BSamAccountName%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3012977%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%20Connect%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

Created new with DistributionGroup with Exchange Server 2016 CU21 using following command:

New-DistributionGroup -Name "bsHyb'G7564" -DisplayName "bsHyb.G7564" -SamAccountName "bsHyb-G7564" -PrimarySmtpAddress "bsHybG7564@mydomain2345.com"

 

Then have checked results by:

Get-DistributionGroup bsHyb* | select Name, DisplayName, SamAccountName, Alias, RecipientTypeDetails, PrimarySmtpAddress, Guid, LegacyExchangeDN


Name                          : bsHyb'G7564
DisplayName              : bsHyb.G7564
SamAccountName     : bsHyb-G7564
Alias                           : bsHyb_G7564
RecipientTypeDetails : MailUniversalDistributionGroup
PrimarySmtpAddress : bsHybG7564@mydomain2345.com
Guid                           : 73711cc8-ad1c-43cd-8747-d98095871f44
LegacyExchangeDN   : /o=SourceDomain org/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=34e7147922ad4366bfff6947c209d8a7-bsHyb'G

Issue that Azure AD Connect sync is auto-generating SamAccountName with o365 tenant:

 

Get-DistributionGroup bsHyb* | Format-Table -Auto Name,DisplayName,SamAccountName,mailNickname,Alias,GroupType,RecipientTypeDetails

Name : bsHyb'G7564

DisplayName :  bsHyb.G7564

SamAccountName :  $U1ME60-Q1PUBMRD1F98

mailNickname : 

Alias : bsHyb_G7564 

GroupType : Universal 

RecipientTypeDetails : MailUniversalDistributionGroup

 

How to sync SamAccountName?

0 Replies