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 值,在租用戶中所有 SharePoint Online 網站上匯報 jdoe@contoso.com的 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