Get-PnPUserProfileProperty

You must connect to the tenant admin website (https://:-admin.sharepoint.com) with Connect-PnPOnline in order to use this cmdlet.

Syntax

Get-PnPUserProfileProperty
   -Account <String[]>
                             [-Connection <SPOnlineConnection>]

Description

Requires a connection to a SharePoint Tenant Admin site.

Examples

------------------EXAMPLE 1------------------

Get-PnPUserProfileProperty -Account 'user@domain.com'

Returns the profile properties for the specified user

------------------EXAMPLE 2------------------

Get-PnPUserProfileProperty -Account 'user@domain.com','user2@domain.com'

Returns the profile properties for the specified users

Required Parameters

-Account

The account of the user, formatted either as a login name, or as a claims identity, e.g. i:0#.f|membership|user@domain.com

Type:String[]
Position:0
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.SharePoint.Client.UserProfiles.PersonProperties