共用方式為


Update-UserType

從 Microsoft Entra ID 匯報 指定使用者的UserType值。

語法

Default (預設值)

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

Description

此 Cmdlet 會擷取指定使用者的UserType值,並更新 Office 365 租使用者中所有SharePoint Online 網站的UserType。 例如,如果使用者的UserType先前已在 Microsoft Entra ID中更新,則這可以用來將來賓使用者轉換為標準 (成員) 使用者。

範例

範例 1

Update-UserType -LoginName jdoe@contoso.com

根據 Microsoft Entra ID 中的 UserType 值,jdoe@contoso.com匯報 租使用者中所有 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