external help file: sharepointonline.xml Module Name: Microsoft.Online.SharePoint.PowerShell online version: https://learn.microsoft.com/powershell/module/sharepoint-online/start-spoauditdatacollectionforactivityinsights applicable: SharePoint Online title: Start-SPOAuditDataCollectionForActivityInsights schema: 2.0.0 author: pvrk ms.author: pullabhk manager: ms.reviewer:
This cmdlet starts collecting relevant audit data for reports, based on activities within the last 28 days, such as Sharing link reports, content shared with Everyone except external users etc from SharePoint admin center.
Start-SPOAuditDataCollectionForActivityInsights -ReportEntity <OptInReportEntityEnum> [<CommonParameters>]
This cmdlet starts collecting relevant audit data for reports, based on activites related to sharing and access. Reports are available for the following scenarios:
- Sharing links created in last 28 days (Anyone, People-in-your-org, Specific people shared externally).
- Content shared with Everyone except external users (EEEU) in last 28 days.
- Copilot agents created in last 28 days (Private Preview)
PS C:\> Start-SPOAuditDataCollectionForActivityInsights -ReportEntity SharingLinks_AnyoneThis cmdlet will start collecting audit data related to the generation of 'Anyone' sharing links from the moment it is executed.
Specifies the entity for which the corresponding audit data should be collected.
Type: OptInReportEntityEnum
Parameter Sets: (All)
Aliases:
Accepted values: SharingLinks_Anyone, SharingLinks_PeopleInYourOrg, SharingLinks_Guests, EveryoneExceptExternalUsersAtSite, EveryoneExceptExternalUsersForItems, CopilotAppInsights
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Stop-SPOAuditDataCollectionForActivityInsights Get-SPOAuditDataCollectionStatusForActivityInsights Start-SPODataAccessGovernanceInsight