Table of Contents

Update-PnPUserType

SYNOPSIS

Updates a user's UserType across all SharePoint Online sites.

SYNTAX

Update-PnPUserType -LoginName <String>

DESCRIPTION

This cmdlet retrieves the UserType value of the specified user and updates the UserType across all SharePoint Online sites in the SharePoint Online tenant. This can be used, for example, to convert a Guest user to a standard (Member) user if the user's UserType was previously updated in Azure AD.

EXAMPLES

EXAMPLE 1

Update-PnPUserType -LoginName jdoe@contoso.com

Updates the jdoe@contoso.com's UserType on all SharePoint Online sites in the tenant based on the UserType value in Azure AD.

PARAMETERS

-LoginName

The login name of the target user to update across SharePoint Online.

Type: String
Parameter Sets: (All)

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

Microsoft 365 Patterns and Practices