Table of Contents

Export-PnPUserProfile

SYNOPSIS

Required Permissions

  • SharePoint: Access to the SharePoint Tenant Administration site

Export user profile data.

SYNTAX

Export-PnPUserProfile -LoginName <String> 

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
Parameter Sets: (All)

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

Microsoft 365 Patterns and Practices