Sync userPrincipalName fo Azure AD to custom attribute in on Prem AD

Marco Milone 46 Reputation points
2023-05-19T10:48:21.65+00:00

Hi, I created a custom Attribute on the active directory on Prem following this guide: https://windowstechno.com/how-to-create-custom-attributes-in-active-directory/ . The local attribute created is called userPrincipalNameAzureAD . I need to modify the sync rules so that when the sync happens the Azure AD "userPrincipalName" attribute is copied to the active directory's "userPrincipalNameAzureAD" attribute on prem. I tried to edit the rules of the connector but the drop-down menu doesn't offer me "userPrincipalNameAzureAD" from the Local active directory. Does anyone have any suggestions?

Best Regards

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,863 questions
Azure Active Directory Domain Services
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Andy David - MVP 121.2K Reputation points MVP
    2023-05-19T10:56:04.1133333+00:00

    You can create directory extensions in AADConnect to sync on-prem> Azure:

    https://learn.microsoft.com/en-us/azure/active-directory/hybrid/connect/how-to-connect-sync-feature-directory-extensions

    It wont sync from Azure > on-prem however...

    0 comments No comments

  2. Marco Milone 46 Reputation points
    2023-05-19T12:07:58.2066667+00:00

    Hi, i need to sync as follow

    Azure AD > OnPrem AD

    userPrincipalName > userPrincipalNameAzureAD

    The attribute extensions sync OnPrem > Azure

    Thansk and Recarda

    0 comments No comments

  3. Andy David - MVP 121.2K Reputation points MVP
    2023-05-19T12:13:37.2933333+00:00

    Sorry, thats not possible with any built-in architecture. There is no automatic sync in that direction (Azure> On-Prem) and there is no writeback for Azure properties like that using AADConnect or AD Cloud Sync.

    0 comments No comments