Hello there,
You can download the script from GitHub which will help you in fetching the policy configurations.
Here is the link https:// github.com/12Knocksinna/Office365itpros/blob/master/ReportTeamsPolicyAssignments.PS1
The report script is very straightforward.
-Connect to the Microsoft Teams PowerShell module to fetch information about the policies assigned to users.
-Connect to the Exchange Online management PowerShell module. This is an optional connection that I use to fetch the tenant name for the report using the Get-OrganizationConfig cmdlet. You could also use the Get-AzureADTenantDetail cmdlet from the Azure AD module.
-For each user, extract the policy assignments and update a PowerShell list object. It’s easy to add or subtract policy assignments to customize the output.
---------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept it as an answer–