Get-PnPUserProfileProperty
Required Permissions
- SharePoint: Access to the SharePoint Tenant Administration site
You must connect to the tenant admin website (https://:
Syntax
Get-PnPUserProfileProperty
-Account <String[]>
[-Connection <PnPConnection>]
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
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 |
-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: | PnPConnection |
Position: | Named |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Microsoft.SharePoint.Client.UserProfiles.PersonProperties