User not available in Teams Search

Damian Lisak 0 Reputation points
2026-03-24T08:25:30.06+00:00

Hey,

I have problem with Teams user - hybrid AD + E5 license.

After I changed Last Name, user is not available in Teams Search.

I tried to rewrite all user details, like Name, Lasn Name, mail, Userproxy, etc.

I tried sync again, I checked different option (from tutorials), nothing helped. Problem has a few days.

If I start new conversation, it's working, but not if I search. The same when other users try to Search this user.

Microsoft Teams | Microsoft Teams for business | Chats | Search messages and conversations
0 comments No comments

2 answers

Sort by: Oldest
  1. Steven-N 25,315 Reputation points Microsoft External Staff Moderator
    2026-03-24T10:20:52.7766667+00:00

    Hi Damian Lisak

    Thank you for reaching out to Microsoft Q&A forum

    From my research, the root cause of this behavior is that Teams Search relies on the Exchange Online Address Book index, and changing the Last Name in hybrid AD sometimes fails to trigger a re-index.

    That said, you need to force it by following below approach:

    On your On-Premises AD server:

    # 1. Hide the user from the Address Book
    Set-ADUser -Identity "username" -Replace @{msExchHideFromAddressLists=$true}
    # 2. Sync to Azure AD
    Start-ADSyncSyncCycle -PolicyType Delta
    # 3. WAIT 1-2 HOURS for Exchange Online to fully process the removal
    # 4. Unhide the user
    Set-ADUser -Identity "username" -Replace @{msExchHideFromAddressLists=$false}
    # 5. Sync again
    Start-ADSyncSyncCycle -PolicyType Delta
    

    Then have the users who are searching for this person clear their local Teams cache (Close Teams --> Win+R --> %localappdata%\packages\msteams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams --> delete contents --> reopen Teams).

    Hope my answer will help you and kindly let me know if the problem still persists.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".   

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  

    Was this answer helpful?


  2. Damian Lisak 0 Reputation points
    2026-03-26T12:26:53.2566667+00:00

    Hey,

    I checked step 3 and didn't help :/ Step 4. didn't check, it looks a little risky with 1 user case :p We have a few tenants and I don't have permission to do changes like this.

    Any other ideas how to solve problem?

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.