Commands › SharePoint Online

Export-SPOUserProfile

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

Export user profile data to csv file.

Quick start script

# Export-SPOUserProfile — 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-SPOUserProfile -LoginName <String> | Format-List

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

Syntax

Export-SPOUserProfile -LoginName <String> [-OutputFolder <String>] [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-LoginName String yes Specifies the login name of the user whose data is exported.
-OutputFolder String Specifies the output folder location where the CSV file is created.

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