You can use information barriers to hide resource accounts in Teams. Information barriers can help you create custom views of the directory based on your organization’s policies and needs.
For specific steps and possible impacts, please refer to the following article:
Manage resource accounts for service numbers - Microsoft Teams | Microsoft Learn.
Information barriers in Microsoft Teams - Microsoft Purview (compliance) | Microsoft Learn.
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.