Skip to content

Latest commit

 

History

History
136 lines (89 loc) · 3.44 KB

File metadata and controls

136 lines (89 loc) · 3.44 KB
external help file Microsoft.Online.SharePoint.PowerShell.dll-Help.xml
Module Name Microsoft.Online.SharePoint.PowerShell
online version https://learn.microsoft.com/powershell/module/microsoft.online.sharepoint.powershell/set-spocontaineruser
applicable SharePoint Online
title Set-SPOContainerUser
schema 2.0.0
author ShreyasSar26
ms.author shsaravanan
ms.reviewer

Set-SPOContainerUser

SYNOPSIS

Reassigns a user from their current role to a new role within a SharePoint Embedded container.

SYNTAX

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

DESCRIPTION

Updates a user's assigned role within a SharePoint Embedded container.

You must be a SharePoint Embedded Administrator to run this cmdlet.

For permissions and the most current information about Windows PowerShell for SharePoint Embedded Containers, see the documentation at Intro to SharePoint Embedded Containers Management Shell.

Note

A user can be assigned to only one role within a container at a time. To transfer principal ownership of a container, use the Set-SPOContainer cmdlet

EXAMPLES

Example 1

Set-SPOContainerUser b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_8U -LoginName shras@contoso.com -Role Manager

Example 1 reassigns the role of User Principal Name "shras@contoso.com" to manager.

PARAMETERS

-ContainerId

Applicable: SharePoint Online

The unique identifier of the container to which the user is being added.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-LoginName

Applicable: SharePoint Online

The user’s login name to assign to the container. This is the User Principal Name.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Role

Applicable: SharePoint Online

The role to assign to the user within the container. Valid roles are:

Owner: Has full control over the container and its contents. Manager: Can add, update, and delete content, and manage permissions, but can't delete the container. Writer: Can add, update, and delete content in the container. Reader: Can only view content in the container.

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Owner, Reader, Writer, Manager

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

Intro to SharePoint Embedded Containers Management Shell

Add-SPOContainerUser

Set-SPOContainerUser

Set-SPOContainer

Get-SPOContainer