Forum Discussion
Bhushan001
Aug 20, 2020Copper Contributor
I want to get list of users to Excel who is using MS Teams with Policies (all) applied to them
For Example considering Global policy, whom it is applied and whom it is not applied
- Hi Bhushan001
You would need to write a Powershell script around Get-CSUserPolicyAssignment
https://docs.microsoft.com/en-us/powershell/module/teams/get-csuserpolicyassignment?view=teams-ps
And as a part of the script export the results to CSV
Only issue here is that the powershell command, as stated in the article does not support multiple users so it could be time consuming. You can't do it from the TAC. AFAIK you can't do it via Graph currently
I think this would be a good add and couldn't find a uservoice so opened on for you here
https://microsoftteams.uservoice.com/forums/555103-public/suggestions/41197888-support-multiple-users-for-get-csuserpolicyassignm
If you vote up, you'll be notified if Microsoft pick it up
Best, Chris
- Hi Bhushan001
You would need to write a Powershell script around Get-CSUserPolicyAssignment
https://docs.microsoft.com/en-us/powershell/module/teams/get-csuserpolicyassignment?view=teams-ps
And as a part of the script export the results to CSV
Only issue here is that the powershell command, as stated in the article does not support multiple users so it could be time consuming. You can't do it from the TAC. AFAIK you can't do it via Graph currently
I think this would be a good add and couldn't find a uservoice so opened on for you here
https://microsoftteams.uservoice.com/forums/555103-public/suggestions/41197888-support-multiple-users-for-get-csuserpolicyassignm
If you vote up, you'll be notified if Microsoft pick it up
Best, Chris