Below is the cmd to list out users assigned to a policy
Get-CsOnlineUser -Filter {ExternalAccessPolicy -eq "Policyname"} | Select-Object DisplayName
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Is there a command in powershell to list out all users assigned to a certain CsExternalAccessPolicy?
Below is the cmd to list out users assigned to a policy
Get-CsOnlineUser -Filter {ExternalAccessPolicy -eq "Policyname"} | Select-Object DisplayName
Below is the cmd to list out users to a certain policy
Get-CsOnlineUser -Filter {ExternalAccessPolicy -eq "Policyname"} | Select-Object DisplayName
Hello there,
The Get-CsExternalAccessPolicy cmdlet provides a way for you to return information about all of the external access policies that have been configured for use in your organization.
Get-CsExternalAccessPolicy
Returns information about the external access policies that have been configured for use in your organization.
https://learn.microsoft.com/en-us/powershell/module/skype/get-csexternalaccesspolicy?view=skype-ps
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–