Additional features, settings, or issues not covered by specific Microsoft Teams categories
You can achieve your goal by using the Microsoft Teams Powershell Module.
1)Install Teams PowerShell Module
Install-Module MicrosoftTeams
2) Connect to Microsoft Teams
Connect-MicrosoftTeams -AccountId <UPN>
3)Get users with Teams Policy
Get-CsOnlineUser -Filter {TeamsAppPermissionPolicy -eq 'Policy Name'}
If the response is helpful, please click "Accept Answer" and upvote it.
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.