Update-UserType

Updates the specified user's UserType value from Microsoft Entra ID.

Syntax

Update-UserType
      [-LoginName] <String>
      [<CommonParameters>]

Description

This cmdlet retrieves the UserType value of the specified user and updates the UserType across all SharePoint Online sites in the Office 365 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 Microsoft Entra ID.

Examples

Example 1

Update-UserType -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 Microsoft Entra ID.

Parameters

-LoginName

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

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

Inputs

None

Outputs

System.Object