Microsoft Teams is more than just a collaboration tool. It can also provide telephone services, so your users can make and receive phone calls. Another feature included in the Phone System license is using voice apps such as auto attendants and call queues. The auto attendant provides a menu system for incoming calls and includes a directory search option. I’ll cover configuration of this option below.

Check out the full post over at the 4Sysops blog:
https://4sysops.com/archives/configuring-auto-attendant-directory-search-in-microsoft-teams/