共用方式為


Remove-SPOContainerUser

從 SharePoint Embedded 容器中的指定角色中移除使用者。

語法

Default (預設值)

Remove-SPOContainerUser
    [-ContainerId] <String>
    -LoginName <String>
    -Role <String>
    [<CommonParameters>]

Description

從 SharePoint Embedded 容器內定義的角色中移除使用者。

您必須是 SharePoint Embedded 系統管理員,才能執行此 Cmdlet。

如需適用於 SharePoint Embedded 容器的 Windows PowerShell 的權限和最新資訊,請參閱 SharePoint Embedded 容器管理命令介面簡介中的檔。

注意事項

您無法移除容器的主要擁有者。

範例

範例 1

Remove-SPOContainerUser b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_8U -LoginName shras@contoso.com -Role Owner

範例 1 會從shras@contoso.com ContainerId 為 b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_8U 。

參數

-ContainerId

適用:SharePoint Online

要新增使用者之容器的唯一識別碼。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:0
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-LoginName

適用:SharePoint Online

要指派給容器的使用者登入名稱。 這是使用者主體名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Role

適用:SharePoint Online

要指派給容器內使用者的角色。 有效角色包括:

所有者:對容器及其內容物擁有完全控制權。 管理員:可以新增、更新和刪除內容,以及管理權限,但無法刪除容器。 寫入器:可以新增、更新和刪除容器中的內容。 讀者:只能檢視容器中的內容。

參數屬性

類型:String
預設值:None
接受的值:Owner, Reader, Writer, Manager
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 Cmdlet 支援常見參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters

輸入

None

輸出

System.Object