ViewsLifeTime - Unique User ID details


  • Hi,

    I want to display Site visitors count in my sharpoint home page. Using REST api (http://<siteurl>/_api/search/query?querytext) i got the count from "ViewsLifeTime" property. It's showing total visitors count till date. But i want to get user id's (user account) details . Is there any way to get the user account details pertaining to the page count?

    Thanks in advance.

    Thanks, Sures | MCTS SharePoint

    • Edited by Suresr Friday, May 18, 2018 7:39 AM
    Friday, May 18, 2018 7:38 AM

All replies

  • Hi Suresr,

    Using Rest API, we can only get the count of Site visitors but user Account detailed information.

    As a workaround, you can use audit log with content viewing to get the user id through site settings->Audit log reports->content viewing report->Report data sheet.

    Best regards,

    Grace Wang

    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Monday, May 21, 2018 7:37 AM