Pregunta

Is there anyway to get user activity within a date range for a given SharePoint site collection?

Seems like the Management API get's for all SharePoint only. It needs to be from C#.

¿Fue útil?

Solución

You cannot directly target a particular site collection but what you can do it use is Audit.SharePoint content type filter while make REST API call.

https://manage.office.com/api/v1.0/{tenant GUID}/activity/feed/subscriptions/content?contentType=Audit.SharePoint&startTime=2017-06-17&endTime=2017-06-19

Once you have data from above service you can use filter based on SharePoint Base API Schema with parameter Site, you might have to use Site Id as parameter to filter events specifics to a particular SharePoint site collectoin.

https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api-schema#sharepoint-base-schema

Licenciado bajo: CC-BY-SA con atribución
scroll top