Microsoft Teams:Powershell Command: Get-CsOnlineUser Pagination Support

Devendra Hapase 0 Reputation points
2025-05-05T07:09:49.8766667+00:00

Microsoft Teams:Powershell Command: Get-CsOnlineUser cmdlet returns information about users in Microsoft Teams.

As per analysis Get-CsOnlineUser do not provide option for pagination

There is an option where all the users are returned and then records can be skipped which will cause performance issue for large number of users

Get-CsOnlineUser | Select-Object -Skip 10 -First 1

Is there any way to apply pagination on Get-CsOnlineUser like below command

Get-CsAutoAttendant -Skip 5 -First 10(This example skips initial 5 auto attendants and gets the next 10 AAs configured in the organization.)

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,918 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sayali-MSFT 3,906 Reputation points Microsoft External Staff Moderator
    2025-05-05T10:02:06.56+00:00

    Hello @Devendra Hapase, Unfortunately, the Get-CsOnlineUser cmdlet in Microsoft Teams PowerShell does not natively support pagination parameters like -Skip and -First, as seen in other cmdlets such as Get-CsAutoAttendant.

    Thank you for your suggestion! To better achieve your requirements, we recommend submitting this feature request through the Teams Feedback Portal. This is the best way to ensure your idea is considered for future updates. 

    We appreciate your input and encourage you to share any additional thoughts! 

    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.