|
| 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/add-spocontaineruser |
| 5 | +applicable: SharePoint Online |
| 6 | +title: Add-SPOContainerUser |
| 7 | +schema: 2.0.0 |
| 8 | +author: ShreyasSar26 |
| 9 | +ms.author: shsaravanan |
| 10 | +ms.reviewer: |
| 11 | +--- |
| 12 | + |
| 13 | +# Add-SPOContainerUser |
| 14 | + |
| 15 | +## SYNOPSIS |
| 16 | + |
| 17 | +Assigns a particular membership of a container to users. |
| 18 | + |
| 19 | +## SYNTAX |
| 20 | + |
| 21 | +``` |
| 22 | +Add-SPOContainerUser [-ContainerId] <String> -LoginName <String> -Role <String> [<CommonParameters>] |
| 23 | +``` |
| 24 | + |
| 25 | + |
| 26 | +## EXAMPLES |
| 27 | + |
| 28 | +### Example 1 |
| 29 | + |
| 30 | + |
| 31 | +```powershell |
| 32 | +Add-SPOContainerUser 423poi45 -LoginName [email protected] Owmer |
| 33 | +``` |
| 34 | + |
| 35 | +Example 1 assigns the role of owner to user with User Principal Name " [email protected]" |
| 36 | + |
| 37 | +## PARAMETERS |
| 38 | + |
| 39 | +-ContainerId |
| 40 | + |
| 41 | +> Applicable: SharePoint Online |
| 42 | + |
| 43 | +Use this parameter to specify the Container ID. |
| 44 | + |
| 45 | +```yaml |
| 46 | +Type: String |
| 47 | +Parameter Sets: (All) |
| 48 | +Aliases: |
| 49 | + |
| 50 | +Required: True |
| 51 | +Position: 0 |
| 52 | +Default value: None |
| 53 | +Accept pipeline input: False |
| 54 | +Accept wildcard characters: False |
| 55 | +``` |
| 56 | + |
| 57 | +-LoginName |
| 58 | + |
| 59 | +> Applicable: SharePoint Online |
| 60 | + |
| 61 | +The User Principal Name to whom a membership is to be assigned. |
| 62 | + |
| 63 | +```yaml |
| 64 | +Type: String |
| 65 | +Parameter Sets: (All) |
| 66 | +Aliases: |
| 67 | + |
| 68 | +Required: True |
| 69 | +Position: Named |
| 70 | +Default value: None |
| 71 | +Accept pipeline input: False |
| 72 | +Accept wildcard characters: False |
| 73 | +``` |
| 74 | + |
| 75 | +-Role |
| 76 | + |
| 77 | +> Applicable: SharePoint Online |
| 78 | + |
| 79 | +The membership role intended to be assigned to a user. The available roles are : |
| 80 | +Owner: have full control over the container and the contents of the container. |
| 81 | +Manager: can add, update, and delete contents of a container and also maintain permissions of the container but cannot delete a container. |
| 82 | +Writer: can add, update, and delete content in the container. |
| 83 | +Reader: can only view content in the container. |
| 84 | + |
| 85 | +```yaml |
| 86 | +Type: String |
| 87 | +Parameter Sets: (All) |
| 88 | +Aliases: |
| 89 | +Accepted values: Owner, Reader, Writer, Manager |
| 90 | + |
| 91 | +Required: True |
| 92 | +Position: Named |
| 93 | +Default value: None |
| 94 | +Accept pipeline input: False |
| 95 | +Accept wildcard characters: False |
| 96 | +``` |
| 97 | + |
| 98 | +### CommonParameters |
| 99 | +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). |
| 100 | + |
| 101 | +## INPUTS |
| 102 | + |
| 103 | +### None |
| 104 | + |
| 105 | +## OUTPUTS |
| 106 | + |
| 107 | +### System.Object |
| 108 | + |
| 109 | +## NOTES |
| 110 | + |
| 111 | +## RELATED LINKS |
| 112 | + |
| 113 | +[Intro to SharePoint Embedded Containers Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell) |
| 114 | + |
| 115 | +[Get-SPOApplication](./Get-SPOApplication.md) |
| 116 | + |
| 117 | +[Set-SPOContainer](./Set-SPOContainer.md) |
| 118 | + |
| 119 | +[Get-SPODeletedContainer](./Get-SPODeletedContainer.md) |
| 120 | + |
| 121 | +[Remove-SPOContainer](./Remove-SPOContainer.md) |
| 122 | + |
| 123 | +[Remove-SPODeletedContainer](./Remove-SPODeletedContainer.md) |
| 124 | + |
| 125 | +[Restore-SPODeletedContainer](./Restore-SPODeletedContainer.md) |
| 126 | + |
| 127 | + |
0 commit comments