|
| 1 | +--- |
| 2 | +external help file: Microsoft.Online.SharePoint.PowerShell.dll-Help.xml |
| 3 | +Module Name: Microsoft.Online.SharePoint.PowerShell |
| 4 | +online version: https://learn.microsoft.com/powershell/module/sharepoint-online/set-spocontaineruser |
| 5 | +applicable: SharePoint Online |
| 6 | +title: Set-SPOContainerUser |
| 7 | +schema: 2.0.0 |
| 8 | +author: ShreyasSar26 |
| 9 | +ms.author: shsaravanan |
| 10 | +ms.reviewer: |
| 11 | +--- |
| 12 | + |
| 13 | +# Set-SPOContainerUser |
| 14 | + |
| 15 | +## SYNOPSIS |
| 16 | + |
| 17 | +Reassigns the user from an already assigned role to a new role on a container. |
| 18 | + |
| 19 | +## SYNTAX |
| 20 | + |
| 21 | +``` |
| 22 | +Set-SPOContainerUser [-ContainerId] <String> -LoginName <String> -Role <String> [<CommonParameters> |
| 23 | +``` |
| 24 | + |
| 25 | +## EXAMPLES |
| 26 | + |
| 27 | +### Example 1 |
| 28 | + |
| 29 | +```powershell |
| 30 | +Set-SPOContainerUser 423poi45 -LoginName [email protected] Manager |
| 31 | +``` |
| 32 | + |
| 33 | +Example 1 reassigns the role of User Principal Name " [email protected]" to manager. |
| 34 | + |
| 35 | +## PARAMETERS |
| 36 | + |
| 37 | +-ContainerId |
| 38 | + |
| 39 | +> Applicable: SharePoint Online |
| 40 | + |
| 41 | +Use this parameter to specify the Container ID. |
| 42 | + |
| 43 | +```yaml |
| 44 | +Type: String |
| 45 | +Parameter Sets: (All) |
| 46 | +Aliases: |
| 47 | + |
| 48 | +Required: True |
| 49 | +Position: 0 |
| 50 | +Default value: None |
| 51 | +Accept pipeline input: False |
| 52 | +Accept wildcard characters: False |
| 53 | +``` |
| 54 | + |
| 55 | +-LoginName |
| 56 | + |
| 57 | +> Applicable: SharePoint Online |
| 58 | + |
| 59 | +The User Principal Name to whom a membership is to be assigned. |
| 60 | + |
| 61 | +```yaml |
| 62 | +Type: String |
| 63 | +Parameter Sets: (All) |
| 64 | +Aliases: |
| 65 | + |
| 66 | +Required: True |
| 67 | +Position: Named |
| 68 | +Default value: None |
| 69 | +Accept pipeline input: False |
| 70 | +Accept wildcard characters: False |
| 71 | +``` |
| 72 | + |
| 73 | +-Role |
| 74 | + |
| 75 | +> Applicable: SharePoint Online |
| 76 | + |
| 77 | +The membership role intended to be assigned to a user. The available roles are : |
| 78 | +Owner: have full control over the container and the contents of the container. |
| 79 | +Manager: can add, update, and delete contents of a container and also maintain permissions of the container but cannot delete a container. |
| 80 | +Writer: can add, update, and delete content in the container. |
| 81 | +Reader: can only view content in the container. |
| 82 | + |
| 83 | +```yaml |
| 84 | +Type: String |
| 85 | +Parameter Sets: (All) |
| 86 | +Aliases: |
| 87 | +Accepted values: Owner, Reader, Writer, Manager |
| 88 | + |
| 89 | +Required: True |
| 90 | +Position: Named |
| 91 | +Default value: None |
| 92 | +Accept pipeline input: False |
| 93 | +Accept wildcard characters: False |
| 94 | +``` |
| 95 | + |
| 96 | +### CommonParameters |
| 97 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](/powershell/module/microsoft.powershell.core/about/about_commonparameters). |
| 98 | + |
| 99 | +## INPUTS |
| 100 | + |
| 101 | +### None |
| 102 | + |
| 103 | +## OUTPUTS |
| 104 | + |
| 105 | +### System.Object |
| 106 | + |
| 107 | +## NOTES |
| 108 | + |
| 109 | +## RELATED LINKS |
| 110 | + |
| 111 | +[Intro to SharePoint Embedded Containers Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell) |
| 112 | + |
| 113 | +[Get-SPOApplication](./Get-SPOApplication.md) |
| 114 | + |
| 115 | +[Set-SPOContainer](./Set-SPOContainer.md) |
| 116 | + |
| 117 | +[Get-SPODeletedContainer](./Get-SPODeletedContainer.md) |
| 118 | + |
| 119 | +[Remove-SPOContainer](./Remove-SPOContainer.md) |
| 120 | + |
| 121 | +[Remove-SPODeletedContainer](./Remove-SPODeletedContainer.md) |
| 122 | + |
| 123 | +[Restore-SPODeletedContainer](./Restore-SPODeletedContainer.md) |
0 commit comments