Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community
SOLVED

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

Deleted
Not applicable

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

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

best response
Solution

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-chan...


@Vasil Michev 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-chan...


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:

 

mstsc_2018-04-24_09-26-12.png

 

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.

It is using MIM, this may help https://docs.microsoft.com/en-us/microsoft-identity-manager/reference/mim2016-functions-reference, if not look for old documentation from Forefront Identity manager. 

@Deleted 

Yes, I do this all the time.

Jerome_Ferrer22_0-1602191165479.png

 

1 best response

Accepted Solutions
best response
Solution

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-chan...

View solution in original post