Commands › SharePoint Online

Export-SPODataAccessGovernanceInsight

SharePoint Online Microsoft.Online.SharePoint.PowerShell Export-*

This cmdlet downloads the Data Access Governance (DAG) reports to the specified path. The default is the "Downloads" folder.

Quick start script

# Export-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
Export-SPODataAccessGovernanceInsight -ReportID <Guid> | Format-List

# 3. Export for evidence / drift tracking
Export-SPODataAccessGovernanceInsight | Export-Clixml .\SPODataAccessGovernanceInsight-$(Get-Date -Format yyyyMMdd).xml

Syntax

Export-SPODataAccessGovernanceInsight -ReportID <Guid> [-DownloadPath <String>] [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-DownloadPath String Specifies the path to which the report should be downloaded. The default path is the "Downloads" folder.
-ReportID Guid yes Specifies the ID of the DAG report to be downloaded.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.