Forum Discussion
DanHuber
Mar 20, 2020Iron Contributor
How to show assigned (Teams) policies per user with PowerShell?
Due to the Teams Admin Center having some performance issues, i used PowerShell to create and assign a specific policy: New-CsTeamsMeetingPolicy -Identity "No Lobby" -AutoAdmittedUsers Everyone ...
DanHuber
Mar 20, 2020Iron Contributor
In the meantime, I found this:
Get-CsOnlineUser -Filter {TeamsMeetingPolicy -eq 'No Lobby'}
| Select UserPrincipalName, TeamsMeetingPolicy
This would give me each user that this policy is applied. But I would have to know the policy name beforehand.
Get-CsOnlineUser -identity someuser | Select *Teams*Policy*
I would expect that this would get me all Teams related policies for the user "someuser". However, the default policies are missing....
- bwilsonMar 31, 2021
Microsoft
You can run the following without any parameters to show all policies created in the tenant:
https://docs.microsoft.com/en-us/powershell/module/skype/get-csteamsmeetingpolicy?view=skype-ps