Forum Discussion

Deleted's avatar
Deleted
Apr 23, 2018
Solved

Change user DisplayName attribute when synching from local AD to O365?

Hello,

 

is it possible to change the DisplayName attribute of a user getting synched from local AD to O365?

The reason is that in local AD our users have the schema: lastname + firstname. However, we would like them ti exist as fistname + lastname across O365. Can this attribute mapping be altered?

We're using Azure AD Connect to synch our on prem local AD users to O365 / SharePoint but we have no Azure premium subscription.

 

Thanks in advance for your help.

5 Replies

    • Deleted's avatar
      Deleted

      VasilMichev wrote:

      You can certainly edit the sync rules, but don't forget that they might get overwritten with updating AAD Connect, thus causing all DisplayNames to revert to default. There's an example in the documentation: https://docs.microsoft.com/en-us/azure/active-directory/connect/active-directory-aadconnectsync-change-the-configuration#use-an-attribute-other-than-the-default


      Thanks. I read that article and it was very helpful. I'm in the middle of creating the new sync rule. However, I'm having trouble with the syntax to create an expression for the transformations option:

       

       

      I would think that in order for the AD attribute 'displayName' to have lastname/firstname reversed I hav to put some kind of expression here. What syntax/language is this? Is it the same code that Excel would accept?

       

      For example, in your linked article under the section Changing the userPrincipalSuffix

      there's an example for what to put in the 'source' field:

       

      userPrincipalName <- Word([userPrincipalName],1,"@") & "@contosotest.com".

       

      Thanks for your help.

  • Hello Florian,

     

    As far as i am aware the value is taken from on your on-premises AD and hence trying to change the AD attribute mapping might not be the answer to your solution.

     

    I havent tested it though, but will try and let you know.

     

    Regards,

    Prashant D

Resources