Nomenclatura de atributos de Active Directory y Office 365
Como señalé en mi publicación anterior, ¡la denominación de atributos de usuario de Active Directory y Azure AD es un poco complicada!
Cuando tiene Office 365 y los atributos están sincronizados desde su AD local a su Azure AD (AAD), los nombres de los atributos parecen cambiar de forma aleatoria:
- Algunos nombres de atributos pueden cambiar cuando se replican desde AD al metaverso de Azure AD Connect
- Algunos nombres de atributos pueden cambiar cuando se replican desde Azure AD Connect Metaverse a Azure AD.
Además, algunos nombres de atributos pueden cambiar según la interfaz de script de Office 365 que esté utilizando.
Como referencia, así es como se ve la replicación local de AD <-> AAD Connect Metaverse <-> AAD:
Asegúrese de leer esto para comprender completamente la replicación de Azure AD Connect y el Metaverso.
Este artículo le brindará una descripción general completa de los distintos nombres de atributos que se transforman durante la replicación de AD a AAD.
Cambios de nombre de atributo de AD a AAD Connect Metaverse a AAD (Office 365)
Primero, obtengamos una descripción general de toda la asignación de atributos en la replicación AD a AAD Connect to AAD (usé este script para extraer la información).
La siguiente tabla muestra el nombre para mostrar LDAP de los atributos de usuario de AD, el nombre de los atributos en Azure AD Connect Metaverse y el nombre de los atributos en Azure AD (Office 365):
AD/Metaverso/AAD - Nombres de atributos
| AD | AAD Metaverse | AAD |
|---|---|---|
| altRecipient | altRecipient | altRecipient |
| assistant | assistant | assistant |
| authOrig | authOrig | authOrig |
| c | c | countryLetterCode |
| cn | cn | commonName |
| co | co | country |
| company | company | company |
| countryCode | countryCode | countryCode |
| department | department | department |
| description | description | description |
| dLMemRejectPerms | dLMemRejectPerms | dLMemRejectPerms |
| dLMemSubmitPerms | dLMemSubmitPerms | dLMemSubmitPerms |
| employeeID | employeeID | employeeID |
| extensionAttribute1 | extensionAttribute1 | extensionAttribute1 |
| extensionAttribute10 | extensionAttribute10 | extensionAttribute10 |
| extensionAttribute11 | extensionAttribute11 | extensionAttribute11 |
| extensionAttribute12 | extensionAttribute12 | extensionAttribute12 |
| extensionAttribute13 | extensionAttribute13 | extensionAttribute13 |
| extensionAttribute14 | extensionAttribute14 | extensionAttribute14 |
| extensionAttribute15 | extensionAttribute15 | extensionAttribute15 |
| extensionAttribute2 | extensionAttribute2 | extensionAttribute2 |
| extensionAttribute3 | extensionAttribute3 | extensionAttribute3 |
| extensionAttribute4 | extensionAttribute4 | extensionAttribute4 |
| extensionAttribute5 | extensionAttribute5 | extensionAttribute5 |
| extensionAttribute6 | extensionAttribute6 | extensionAttribute6 |
| extensionAttribute7 | extensionAttribute7 | extensionAttribute7 |
| extensionAttribute8 | extensionAttribute8 | extensionAttribute8 |
| extensionAttribute9 | extensionAttribute9 | extensionAttribute9 |
| facsimileTelephoneNumber | facsimileTelephoneNumber | facsimileTelephoneNumber |
| givenName | givenName | givenName |
| homePhone | homePhone | homePhone |
| info | info | info |
| initials | initials | initials |
| ipPhone | ipPhone | ipPhone |
| l | l | city |
| legacyExchangeDN | legacyExchangeDN | legacyExchangeDN |
| mailNickname | mailNickname | alias |
| manager | manager | manager |
| middleName | middleName | middleName |
| mobile | mobile | mobile |
| msDS-HABSeniorityIndex | msDS-HABSeniorityIndex | msDsHabSeniorityIndex |
| msDS-PhoneticDisplayName | msDS-PhoneticDisplayName | msDsPhoneticDisplayName |
| msExchArchiveGUID | msExchArchiveGUID | msExchArchiveGuid |
| msExchArchiveName | msExchArchiveName | msExchArchiveName |
| msExchAssistantName | msExchAssistantName | msExchAssistantName |
| msExchAuditAdmin | msExchAuditAdmin | msExchAuditAdmin |
| msExchAuditDelegate | msExchAuditDelegate | msExchAuditDelegate |
| msExchAuditDelegateAdmin | msExchAuditDelegateAdmin | msExchAuditDelegateAdmin |
| msExchAuditOwner | msExchAuditOwner | msExchAuditOwner |
| msExchBlockedSendersHash | msExchBlockedSendersHash | msExchBlockedSendersHash |
| msExchBypassAudit | msExchBypassAudit | msExchBypassAudit |
| msExchDelegateListLink | msExchDelegateListLink | msExchDelegateListLink |
| msExchELCExpirySuspensionEnd | msExchELCExpirySuspensionEnd | msExchElcExpirySuspensionEnd |
| msExchELCExpirySuspensionStart | msExchELCExpirySuspensionStart | msExchElcExpirySuspensionStart |
| msExchELCMailboxFlags | msExchELCMailboxFlags | msExchElcMailboxFlags |
| msExchEnableModeration | msExchEnableModeration | msExchEnableModeration |
| msExchHideFromAddressLists | msExchHideFromAddressLists | msExchHideFromAddressLists |
| msExchImmutableId | msExchImmutableId | msExchImmutableId |
| msExchLitigationHoldDate | msExchLitigationHoldDate | msExchLitigationHoldDate |
| msExchLitigationHoldOwner | msExchLitigationHoldOwner | msExchLitigationHoldOwner |
| msExchMailboxAuditEnable | msExchMailboxAuditEnable | msExchMailboxAuditEnable |
| msExchMailboxAuditLogAgeLimit | msExchMailboxAuditLogAgeLimit | msExchMailboxAuditLogAgeLimit |
| msExchMailboxGuid | msExchMailboxGuid | msExchMailboxGuid |
| msExchModeratedByLink | msExchModeratedByLink | msExchModeratedByLink |
| msExchModerationFlags | msExchModerationFlags | msExchModerationFlags |
| msExchRecipientDisplayType | msExchRecipientDisplayType | msExchRecipientDisplayType |
| msExchRemoteRecipientType | msExchRemoteRecipientType | msExchRemoteRecipientType |
| msExchRequireAuthToSendTo | msExchRequireAuthToSendTo | msExchRequireAuthToSendTo |
| msExchResourceCapacity | msExchResourceCapacity | msExchResourceCapacity |
| msExchResourceDisplay | msExchResourceDisplay | msExchResourceDisplay |
| msExchResourceMetaData | msExchResourceMetaData | msExchResourceMetadata |
| msExchResourceSearchProperties | msExchResourceSearchProperties | msExchResourceSearchProperties |
| msExchRetentionComment | msExchRetentionComment | msExchRetentionComment |
| msExchRetentionURL | msExchRetentionURL | msExchRetentionUrl |
| msExchSafeRecipientsHash | msExchSafeRecipientsHash | msExchSafeRecipientsHash |
| msExchSafeSendersHash | msExchSafeSendersHash | msExchSafeSendersHash |
| msExchSenderHintTranslations | msExchSenderHintTranslations | msExchSenderHintTranslations |
| msExchUsageLocation | usageLocation | usageLocation |
| objectSid | objectSid | onPremiseSecurityIdentifier |
| otherFacsimileTelephoneNumber | otherFacsimileTelephoneNumber | otherFacsimileTelephoneNumber |
| otherHomePhone | otherHomePhone | otherHomePhone |
| otherIpPhone | otherIpPhone | otherIpPhone |
| otherMobile | otherMobile | otherMobile |
| otherPager | otherPager | otherPager |
| otherTelephone | otherTelephone | otherTelephone |
| pager | pager | pager |
| physicalDeliveryOfficeName | physicalDeliveryOfficeName | physicalDeliveryOfficeName |
| postalCode | postalCode | postalCode |
| postOfficeBox | postOfficeBox | postOfficeBox |
| preferredLanguage | preferredLanguage | preferredLanguage |
| proxyAddresses | proxyAddresses | proxyAddresses |
| publicDelegates | publicDelegates | publicDelegates |
| pwdLastSet | pwdLastSet | lastPasswordChangeTimestamp |
| sAMAccountName | accountName | onPremisesSamAccountName |
| sn | sn | surname |
| st | st | state |
| streetAddress | streetAddress | streetAddress |
| targetAddress | targetAddress | targetAddress |
| telephoneAssistant | telephoneAssistant | telephoneAssistant |
| telephoneNumber | telephoneNumber | telephoneNumber |
| thumbnailPhoto | thumbnailPhoto | thumbnailPhoto |
| title | title | title |
| unauthOrig | unauthOrig | unauthOrig |
| url | url | url |
| userAccountControl | accountEnabled | accountEnabled |
| wWWHomePage | wWWHomePage | wWWHomePage |
(La lista puede diferir de su instalación dependiendo de las extensiones de Active Directory que haya creado)
El ojo atento detectará en la tabla anterior que algunos nombres de atributos cambian durante la replicación.
La siguiente tabla enumera los atributos que cambian su nombre durante el tránsito de AD a través del Metaverso a Azure AD:
AD/Metaverso/AAD - Cambios de nombre de atributo
| AD | AAD Metaverse | AAD |
|---|---|---|
| c | c | countryLetterCode |
| cn | cn | commonName |
| co | co | country |
| l | l | city |
| mailNickname | mailNickname | alias |
| msDS-HABSeniorityIndex | msDS-HABSeniorityIndex | msDsHabSeniorityIndex |
| msDS-PhoneticDisplayName | msDS-PhoneticDisplayName | msDsPhoneticDisplayName |
| msExchUsageLocation | usageLocation | usageLocation |
| objectSid | objectSid | onPremiseSecurityIdentifier |
| pwdLastSet | pwdLastSet | lastPasswordChangeTimestamp |
| sAMAccountName | accountName | onPremisesSamAccountName |
| sn | sn | surname |
| st | st | state |
| userAccountControl | accountEnabled | accountEnabled |
Resumen
De la tabla anterior se desprende claramente que es necesario abordar ciertos atributos con nombres diferentes según su "punto de entrada". ¡Active Directory local puede usar nombres de atributos diferentes a los de Azure AD!
Esto se complica aún más por el hecho de que las interfaces de secuencias de comandos de PowerShell también cambian algunos de los nombres como se describe aquí.
