SharePoint viewers limited at 25 results - Microsoft Graph API

SYS Abderrahmane Charrade 10 Reputation points
2023-09-05T10:07:31.6+00:00

Hi all,

I do have one concern about the Microsoft Graph API.

Especially one GET request is not sufficient enough when it comes to the viewers of SharePoint pages.

This MS-Graph Endpoint / URI: "https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items/{item-id}/analytics/allTime?$expand=activities" returns only the first/least 25 viewers in the "activities" array. While the page has more viewers than 25, I could not find any way to increase the number of results. Even with parameters like "activities($top=n)," it did not work.

And even when manually inspecting the page by hovering over the site page in my SharePoint list saved in the "Page Library" folder "Site Pages," I could not see all users, only the first 25.

The approach with Microsoft Purview to load them with Audit Search is not an option, unfortunately. Is there any update or way to get the results? Preferably with the Microsoft Graph API. I couldn't find any solution for this, and most forums or SharePoint publications/documentations do not show the desired solution.

Thanks in advance for every solution.

Best regards,

A.C.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,056 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,715 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,988 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,529 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. ChengFeng - MSFT 5,020 Reputation points Microsoft Vendor
    2023-09-06T02:13:01.8933333+00:00

    Hi @SYS Abderrahmane Charrade

    Thanks for letting us know your user experience. According to your case description, I do understand how frustrated you are now.

     

    When I received the case, I searched a lot of documents did a lot of researches.

    This document was updated for content in August; previously, the limit was 25.

    It has been changed to 100 at present.

    User's image

    Maybe you can wait until the official updates it completely before trying it again.

    And I noticed that some end users have also proposed the same request, it is highly recommended that you can vote this ticket. Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future. Thanks for your understanding.

     

    feedback
    https://feedbackportal.microsoft.com/feedback/


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards

    Cheng Feng

    1 person found this answer helpful.

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.