Share via


Update-UserType

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

Syntax

Default (Default)

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

Applicable: SharePoint Online

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

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object