Edit

Share via


Start-SPOAuditDataCollectionForActivityInsights

This cmdlet starts collecting audit data for reports on activities from the last 28 days, such as sharing link reports and content shared with everyone except external users, from the SharePoint admin center.

Syntax

Start-SPOAuditDataCollectionForActivityInsights
     -ReportEntity <OptInReportEntityEnum>
     [<CommonParameters>]

Description

This cmdlet starts collecting audit data for reports on sharing and access activities from the last 28 days. Reports are available for the following scenarios:

  • Sharing links created in the last 28 days (Anyone, People in Your Organization, Specific people shared externally).
  • Content shared with Everyone except external users (EEEU) in the last 28 days.
  • Copilot agents created in the last 28 days (Private Preview).

Examples

Example 1

Start-SPOAuditDataCollectionForActivityInsights -ReportEntity SharingLinks_Anyone

This example will start collecting audit data related to the generation of 'Anyone' sharing links from the moment the cmdlet is executed.

Parameters

-ReportEntity

Specifies the entity for which the corresponding audit data should be collected.

Type:OptInReportEntityEnum
Accepted values:SharingLinksAnyone, SharingLinksPeopleInYourOrg, SharingLinksGuests, EveryoneExceptExternalUsersAtSite, EveryoneExceptExternalUsersForItems, CopilotAppInsights
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

System.Object