Table of Contents

Export-PnPUserInfo

SYNOPSIS

Required Permissions

  • SharePoint: Access to the SharePoint Tenant Administration site

Export user information from site user information list.

SYNTAX

Export-PnPUserInfo -LoginName <String> [-Site <String>]

DESCRIPTION

Export user information from the site user information list. If the Site parameter has not been specified, the current connect to site will be used.

EXAMPLES

EXAMPLE 1

Export-PnPUserInfo -LoginName user@domain.com -Site "https://yoursite.sharepoint.com/sites/team"

This exports user data with the email address user@domain.com from the site collection specified.

EXAMPLE 2

Export-PnPUserInfo -LoginName user@domain.com -Site "https://yoursite.sharepoint.com/sites/team" | ConvertTo-Csv | Out-File MyFile.csv

This exports user data with the email address user@domain.com from the site collection specified, 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: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Site

Specifies the URL of the site collection to which you want to export the user.

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