Find all users assigned to external access policy for teams

Tony 0 Reputation points
2023-01-25T15:06:50.82+00:00

Is there a command in powershell to list out all users assigned to a certain CsExternalAccessPolicy?

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,311 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,595 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Tony 0 Reputation points
    2023-01-25T15:40:06.8766667+00:00

    Below is the cmd to list out users assigned to a policy

    Get-CsOnlineUser -Filter {ExternalAccessPolicy -eq "Policyname"} | Select-Object DisplayName
    
    
    0 comments No comments

  2. Tony 0 Reputation points
    2023-01-25T15:41:09.25+00:00

    Below is the cmd to list out users to a certain policy

    Get-CsOnlineUser -Filter {ExternalAccessPolicy -eq "Policyname"} | Select-Object DisplayName
    
    
    0 comments No comments

  3. Limitless Technology 44,401 Reputation points
    2023-01-26T16:25:45.65+00:00

    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–

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.