Commands › SharePoint Online
Start-SPODataAccessGovernanceInsight
This cmdlet generates Data Access Governance (DAG) reports meant to provide insights into potential oversharing of sensitive data in SharePoint and/or OneDrive for Business. SharePoint Advanced Management (SAM) license is required to run these reports.
Quick start script
# Start-SPODataAccessGovernanceInsight — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com
# 2. Run and inspect
Start-SPODataAccessGovernanceInsight -CountOfUsersMoreThan <Int32> -FileSensitivityLabelGUID <Guid> -Name <String> | Format-List
# 3. Export for evidence / drift tracking
Start-SPODataAccessGovernanceInsight | Export-Clixml .\SPODataAccessGovernanceInsight-$(Get-Date -Format yyyyMMdd).xml
Syntax — 6 parameter sets
EEEUParameterSet
Start-SPODataAccessGovernanceInsight -ReportEntity <ReportEntityEnum> -Workload <WorkloadEnum>
-ReportType <ReportTypeEnum> -Name <String>
[-Template <System.Collections.Generic.List`1[Microsoft.Online.SharePoint.TenantAdministration.TemplateEnum]>]
[-Privacy <PrivacyEnum>] [-SiteSensitivityLabelGUID <System.Collections.Generic.List`1[System.Guid]>]
[<CommonParameters>]
SharingLinkParameterSet
Start-SPODataAccessGovernanceInsight -ReportEntity <ReportEntityEnum> -Workload <WorkloadEnum>
-ReportType <ReportTypeEnum> [<CommonParameters>]
LabelParameterSet
Start-SPODataAccessGovernanceInsight -ReportEntity <ReportEntityEnum> -Workload <WorkloadEnum>
-ReportType <ReportTypeEnum> [-FileSensitivityLabelName <String>] -FileSensitivityLabelGUID <Guid>
[<CommonParameters>]
SitePermissionsParameterSet
Start-SPODataAccessGovernanceInsight -ReportEntity <ReportEntityEnum> -Workload <WorkloadEnum>
-ReportType <ReportTypeEnum> -Name <String>
[-Template <System.Collections.Generic.List`1[Microsoft.Online.SharePoint.TenantAdministration.TemplateEnum]>]
[-Privacy <PrivacyEnum>] [-SiteSensitivityLabelGUID <System.Collections.Generic.List`1[System.Guid]>]
-CountOfUsersMoreThan <Int32> [<CommonParameters>]
2 more parameter sets — see the parameter table below.
Parameters (11)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.