Update-UserType

从Microsoft Entra ID汇报指定用户的 UserType 值。

语法

Default (默认值)

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

说明

此 cmdlet 检索指定用户的 UserType 值,并跨Office 365租户中的所有 SharePoint Online 网站更新 UserType。 例如,这可用于将来宾用户转换为标准 (成员) 用户(如果用户的 UserType 之前已在Microsoft Entra ID中更新)。

示例

示例 1

Update-UserType -LoginName jdoe@contoso.com

jdoe@contoso.com根据 Microsoft Entra ID 中的 UserType 值,在租户中的所有 SharePoint Online 网站上汇报 UserType。

参数

-LoginName

适用:SharePoint Online

要跨 SharePoint Online 更新的目标用户的登录名。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:1
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输入

None

输出

System.Object