Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
SJHA
Helper I
Helper I

Retrieving data for a report of SharePoint online site view statistics with UserId

I'm working on a PowerBI report of SharePoint online site statistics. I need to be able to tell how many of our employees are viewing/visiting our news by their 'employee type' - data from our AAD.

 

I am struggling to find data outside of Audit via Purview that has a record of the visit/view that includes the userId of the action. Is it possible to get Sharepoint Audit data as an API?


I am working with Graph APIs mainly

1 ACCEPTED SOLUTION
jgeddes
Super User
Super User

This page may provide some answers for you.

Create auditLogQuery - Microsoft Learn 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
jgeddes
Super User
Super User

This page may provide some answers for you.

Create auditLogQuery - Microsoft Learn 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Thank you for your help.

 

Do you know if it's possible to create a query via the API where I can specify the URL of the sharePoint sites with a wild card - like I can from the Purview portal

SJHA_0-1738152194331.png

For example I'd like to only get auditData on "www.company.sharepoint.com/sites/XYZ*" - where * is a wildcard

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.