Commands › SharePoint Online

Export-SPOUserInfo

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

Export user information from site user information list.

Quick start script

# Export-SPOUserInfo — 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-SPOUserInfo -LoginName <String> -Site <SpoSitePipeBind> | Format-List

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

Syntax

Export-SPOUserInfo -LoginName <String> -Site <SpoSitePipeBind> [-OutputFolder <String>] [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-LoginName String yes Specifies the login name of the user to export.
-OutputFolder String Target folder where the CSV file is generated.
-Site SpoSitePipeBind yes Specifies the URL of the site collection to which you want to export the user.

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