Export-PnPUserProfile

Tip

We encourage you to make improvements to this documentation. Please navigate to https://github.com/pnp/powershell/blob/dev/documentation/Export-PnPUserProfile.md to change this file.

Required Permissions

  • SharePoint: Access to the SharePoint Tenant Administration site

Export user profile data.

Syntax

Export-PnPUserProfile
      -LoginName <String>
      [<CommonParameters>]

Description

Export user profile data.

Examples

EXAMPLE 1

Export-PnPUserProfile -LoginName user@domain.com

This exports user profile data with the email address user@domain.com.

EXAMPLE 2

Export-PnPUserProfile -LoginName user@domain.com | ConvertTo-Csv | Out-File MyFile.csv

This exports user profile data with the email address user@domain.com, converts it to a CSV format and writes the result to the file MyFile.csv.

Parameters

-LoginName

Specifies the login name of the user to export.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False