Forum Discussion
IT_DSGB
Jun 22, 2020Copper Contributor
Teams Meeting Policy Membership
Hi,
I'm looking to get a list of the users that I've assigned a MS Teams Meeting Policy. Is there a Power Shell script to accomplish this? or can it be found anywhere in the admin center?
IT_DSGB Hey, you can use the Get-CsOnlineUser cmdlet. It should look something like this for a single policy Get-CsOnlineUser -Filter {teamsmeetingpolicy -eq "RestrictedAnonymousAccess"}
A search took me here https://cann0nf0dder.wordpress.com/2020/03/29/getting-all-ms-teams-user-policies-using-powershell/ which explains it further.
There is an update coming that will allow you to assign policies to a group, but that feature is in private preview and the roadmap states that it will be released May 2020 (they missed that). So I guess that due to corona this has been delayed.
https://docs.microsoft.com/en-us/microsoftteams/assign-policies#assign-a-policy-to-a-group
https://www.microsoft.com/en-us/microsoft-365/roadmap?filters=&searchterms=61185
So what you can do now is to use powershell (or TAC) and assign policies to a batch of users. See more here: https://docs.microsoft.com/en-us/microsoftteams/assign-policies#assign-a-policy-to-a-batch-of-users
- IT_DSGBCopper ContributorHi Linus,
Thanks for the information on group policy assignments. I'm actually looking of a way to see the users I've already assigned a policy to.- ChristianBergstromSilver Contributor
IT_DSGB Hey, you can use the Get-CsOnlineUser cmdlet. It should look something like this for a single policy Get-CsOnlineUser -Filter {teamsmeetingpolicy -eq "RestrictedAnonymousAccess"}
A search took me here https://cann0nf0dder.wordpress.com/2020/03/29/getting-all-ms-teams-user-policies-using-powershell/ which explains it further.