Type something to search...
How to handle duplicates in Teams directory search

How to handle duplicates in Teams directory search


Introduction

Microsoft recently announced a significant optimization for the search by name and extension functionality in its Teams auto attendants. You have probably already had this case where 2 employees share the same first and last name, making the search in the directory a little complex. This new update allows a new search attribute to be added, thus giving more details to the caller.


Optimization details

The new UserNameExtension attribute is added to attendants ; this is a string that specifies how to expand usernames in search by adding additional information after the name. When multiple search results are found, this attribute activates and returns the value of another attribute chosen by the administrator.

  • None : default value, the username is pronounced as is.
  • Office : adds the information of the office configured in Entra ID.
  • Department : adds the information of the department configured in Entra ID.

Configuration in PowerShell

You can configure the new UserNameExtension attribute via the following PowerShell commands :

Connect-MicrosoftTeams

$AAToModify = Get-CsAutoAttendant -Identity 45693a48-7f85-aaaa-bbbb-cccccccccccc
$AAToModify.UserNameExtension = "Department"
Set-CsAutoAttendant -Instance $$AAToModify = Get-CsAutoAttendant -Identity 45693a48-7f85-aaaa-bbbb-cccccccccccc

The configuration may take several minutes to be effective. Your menu should then look like this:

image

Note that the change is only possible in PowerShell at the moment and any update via the Teams Admin Center would cancel this configuration ; but as usual, a future update will allow it to be done in web mode, be patient.


Caller experience

Using this attribute, searching the directory for a duplicate name will return office or department information.

  • For Maxime Hiez – HR, press 1.
  • For Maxime Hiez – IT, press 2.

Conclusion

You now know how to fix duplicates when searching by name or extension in the directory.


Sources

Microsoft Learn - New-CsAutoAttendant


Did you enjoy this post ? If you have any questions, comments or suggestions, please feel free to send me a message from the contact form.

Don’t forget to follow us and share this post.

Related Posts

How I resolved dropped Teams calls

How I resolved dropped Teams calls

Introduction A customer contacted me to tell me that he was having an issue with his Microsoft Teams telephony. Outgoing calls are being cut off even before the audio connection is establis

Read More
Pricing update for Teams telephony licenses

Pricing update for Teams telephony licenses

Introduction Microsoft recently announced a price increase for several Teams telephony licenses, effective April 1, 2025. This pricing update reflects the continued innovation and increased

Read More
How to disable self-service on Copilot licenses

How to disable self-service on Copilot licenses

Introduction Microsoft has activated a setting in the tenants (by default) to allow any user to purchase a Microsoft Copilot license through the *Microsoft 365 Copilot self-service pursha

Read More
The SMS messages will be native in Teams

The SMS messages will be native in Teams

Introduction Microsoft Teams continues to evolve, offering comprehensive communication and collaboration solutions. Among its features, SMS integration allows Teams users to easily communic

Read More
Import the DigiCert Root G2 certificate into a Ribbon SBC

Import the DigiCert Root G2 certificate into a Ribbon SBC

Introduction Since the arrival of Teams Direct Routing telephony, TLS certificates used by Microsoft servers are linked to the following root certification authority :Common Certificate

Read More
Import the DigiCert Root G2 certificate into an Audiocodes SBC

Import the DigiCert Root G2 certificate into an Audiocodes SBC

Introduction Since the arrival of Teams Direct Routing telephony, TLS certificates used by Microsoft servers are linked to the following root certification authority :Common Certificate

Read More
How to configure callback in a Teams queue

How to configure callback in a Teams queue

Definition Callback in Teams allows callers in a queue to be called back after a certain time rather than waiting until an agent becomes available.Prerequisites **Licenses r

Read More
How to inventory Direct Routing numbers in Teams

How to inventory Direct Routing numbers in Teams

Introduction Microsoft Teams continues to evolve to offer ever more effective communication and collaboration solutions. To make life easier for administrators, Microsoft has announced the

Read More
The end of AzureAD and MSOnline PowerShell modules

The end of AzureAD and MSOnline PowerShell modules

Introduction Microsoft recently announced the general availability of the Microsoft Entra PowerShell module. This module offers administrators and IT professionals a new way to manage and a

Read More
Update to version 6.8.0 of the Teams PowerShell module

Update to version 6.8.0 of the Teams PowerShell module

Introduction Microsoft recently released the new version 6.8.0 of the PowerShell module for Microsoft Teams.Installation You can check the version of the installed module via t

Read More
Debugging Teams calls via the SIP ladder

Debugging Teams calls via the SIP ladder

Introduction Microsoft Teams continues to evolve to offer ever more advanced communication and collaboration solutions. Among the features arriving very soon, we find the possibility of obt

Read More
How to block a specific external user in Teams

How to block a specific external user in Teams

Introduction Microsoft recently introduced a new feature for Teams administrators to block specific external users. This update aims to strengthen security and protect internal members of t

Read More
Update to version 13.3.0 of the Azure PowerShell module

Update to version 13.3.0 of the Azure PowerShell module

Introduction Microsoft recently released the new version 13.3.0 of the PowerShell module for Microsoft Azure.Installation You can check the version of the installed module via

Read More
Update to version 6.9.0 of the Teams PowerShell module

Update to version 6.9.0 of the Teams PowerShell module

Introduction Microsoft recently released the new version 6.9.0 of the PowerShell module for Microsoft Teams.Installation You can check the version of the installed module via t

Read More
How to analyze Direct Routing calls via the SIP ladder

How to analyze Direct Routing calls via the SIP ladder

Introduction I wrote an article last February to announce the upcoming release of the SIP ladder to analyze Teams Direct Routing calls from the Microsoft Teams Admin Center. The feature is

Read More
How to analyze incoming calls in Teams with CQD

How to analyze incoming calls in Teams with CQD

Définition Microsoft's Teams Call Quality Dashboard (CQD) is a powerful tool designed to help administrators monitor and improve the quality of phone calls within their organization. Th

Read More
How to enable LDAP routing in an Audiocodes SBC

How to enable LDAP routing in an Audiocodes SBC

Introduction LDAP (Lightweight Directory Access Protocol) routing over an SBC (Session Border Controller) allows calls to be managed using information stored in an Active Directory.

Read More
Update to version 7.0.0 of the Teams PowerShell module

Update to version 7.0.0 of the Teams PowerShell module

Introduction Microsoft recently released the new version 7.0.0 of the PowerShell module for Microsoft Teams.Installation Vous pouvez vérifier la version du module installé via

Read More