Issues with Pagination Parameters (-Skip, -Top, -Count, -All) in Microsoft Graph PowerShell SDK

Taras Kloba 0 Reputation points Microsoft Employee
2023-11-05T15:36:54.89+00:00

Hello,

I'm encountering an issue with the Microsoft Graph PowerShell SDK when trying to retrieve online meeting attendance reports. Specifically, I'm using the Get-MgUserOnlineMeetingAttendanceReport cmdlet, and the pagination parameters -Skip, -Top, -Count, and -All are not working as expected.

When I run the cmdlet with these parameters, I am still only getting the first 50 records, regardless of the pagination or -All parameters I use.

For example, when I attempt to skip the first 50 records and retrieve the next set, like so:

powershellCopy code
Get-MgUserOnlineMeetingAttendanceReport -UserId "<user_id>" -OnlineMeetingId "<meeting_id>" -Top 50 -Skip 50

I received the same results as if I hadn't used the -Skip parameter at all. This is also the case when I try to use the -All parameter to retrieve all records.

Additionally, making a direct request to the Graph API endpoint returns the same results, ignoring the $top and $skip query parameters:

GET /v1.0/users/<user_id>/onlineMeetings/<meeting_id>/attendanceReports?$top=50&$skip=50

Is there a known issue with pagination for this endpoint, or am I missing something in my request? Any guidance on this matter would be greatly appreciated.

Thank you for your assistance.

Windows for business Windows Server User experience PowerShell
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,371 Reputation points
    2023-11-06T08:15:44.2666667+00:00

    Hi @Taras Kloba

    You may have missed a special instruction from the document. This is actually a limitation issue, it can only return up to 50 of the most recent reports.

    User's image

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


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.