Additional features, settings, or issues not covered by specific Microsoft Teams categories
Thank you for reaching out to Microsoft Q&A forum.
I understand you're trying to prevent unlicensed users from appearing in Microsoft Teams search results, and I'd be happy to walk you through the options that can help you manage their visibility effectively.
1/ Hide users from the Global Address List (GAL) (with admin require)
One of the simplest ways to remove an account from appearing in Teams search is to hide it from the global address list. You can do this using either Microsoft 365 admin center or the Exchange admin center:
- Microsoft 365 admin center: Go to Active Users > select the user > Edit > Mail > Show in global address list, and switch it off.
- Exchange admin center: Use the Hide from global address list (GAL) option on the user’s mailbox properties.
For detailed steps, you can refer to the article Hide User from Microsoft 365 People Search (for real).
Please note that this information is being provided by the moderator solely for your convenience. The referenced sites are not managed or overseen by the moderator, and therefore we cannot guarantee the accuracy, security, or suitability of any software or content available there. We recommend reviewing all information carefully and ensuring you understand any associated risks before following suggestions from the provided link.
2/ Use scoped directory search (Address Book Policies)
If you want broader control - such as hiding entire categories of users (e.g., contractors or Azure Virtual Desktop–only accounts) - you can configure Address Book Policies (ABP) or Scoped Directory Search.
Teams supports directory segmentation, and when configured, these policies determine who appears in People Search. You can enable this under:
Teams admin center > Teams > Teams settings > Search by name > Scope directory search using an Exchange address book policy.
For more information, refer to the Microsoft documentation on: Limit who users can see when searching the directory in Teams.
I hope this information helps. Please try the steps and let me know whether they resolve the issue. If the problem persists, we can work together to find a solution.
As other users will also search for information in this community, your vote can significantly help those with similar inquiries quickly locate the most relevant resources.
Thank you for your kindness and for contributing to the forum.
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.