Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
79f8985
Create Add-SPOContainerUser
ShreyasSar26 Aug 11, 2025
150cd3e
Update Add-SPOContainerUser
ShreyasSar26 Aug 11, 2025
d7598be
Create Remove-SPOContainerUser
ShreyasSar26 Aug 11, 2025
6fd5cce
Create Set-SPOContainerUser
ShreyasSar26 Aug 11, 2025
dedc559
Update Remove-SPOContainerUser
ShreyasSar26 Aug 11, 2025
1cac876
Merge branch 'main' into patch-PS
ShreyasSar26 Aug 14, 2025
1dc6392
Merge branch 'main' into patch-PS
ShreyasSar26 Aug 20, 2025
262c933
Update Add-SPOContainerUser
ShreyasSar26 Aug 20, 2025
20c297e
Update Add-SPOContainerUser
ShreyasSar26 Aug 20, 2025
9bddbad
Update Add-SPOContainerUser
ShreyasSar26 Aug 20, 2025
04a795f
Update Remove-SPOContainerUser
ShreyasSar26 Aug 20, 2025
e726204
Update Remove-SPOContainerUser
ShreyasSar26 Aug 20, 2025
1d35326
Update Set-SPOContainerUser
ShreyasSar26 Aug 20, 2025
5c929bc
Update Add-SPOContainerUser
ShreyasSar26 Aug 20, 2025
8433113
Merge branch 'main' into patch-PS
ShreyasSar26 Aug 21, 2025
6aad8bb
Update Microsoft.Online.SharePoint.PowerShell.md
ShreyasSar26 Aug 21, 2025
884e8e0
Update Add-SPOContainerUser
ShreyasSar26 Aug 21, 2025
e3a5c1f
Update Set-SPOContainerUser
ShreyasSar26 Aug 21, 2025
b338d49
Update Remove-SPOContainerUser
ShreyasSar26 Aug 21, 2025
01a2d69
Rename Add-SPOContainerUser to Add-SPOContainerUser.md
ShreyasSar26 Aug 22, 2025
5fde187
Rename Remove-SPOContainerUser to Remove-SPOContainerUser.md
ShreyasSar26 Aug 22, 2025
a4efe09
Rename Set-SPOContainerUser to Set-SPOContainerUser.md
ShreyasSar26 Aug 22, 2025
46c0d4f
Merge branch 'main' into patch-PS
ShreyasSar26 Aug 22, 2025
4472e1d
typo fix
Ruchika-mittal01 Aug 22, 2025
35b3078
typo fix 2
Ruchika-mittal01 Aug 22, 2025
b70f0df
typo fix 3
Ruchika-mittal01 Aug 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
---
external help file: Microsoft.Online.SharePoint.PowerShell.dll-Help.xml
Module Name: Microsoft.Online.SharePoint.PowerShell
online version: https://learn.microsoft.com/powershell/module/sharepoint-online/add-spocontaineruser
applicable: SharePoint Online
title: Add-SPOContainerUser
schema: 2.0.0
author: ShreyasSar26
ms.author: shsaravanan
ms.reviewer:
---

# Add-SPOContainerUser

## SYNOPSIS

Assigns a particular membership of a container to users.

## SYNTAX

```
Add-SPOContainerUser [-ContainerId] <String> -LoginName <String> -Role <String> [<CommonParameters>]
```

## EXAMPLES

### Example 1

```powershell
Add-SPOContainerUser 423poi45 -LoginName [email protected] Owmer
```

Example 1 assigns the role of owner to user with User Principal Name "[email protected]"

## PARAMETERS

-ContainerId

> Applicable: SharePoint Online

Use this parameter to specify the Container ID.

```yaml
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 Principal Name to whom a membership is to be assigned.

```yaml
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 membership role intended to be assigned to a user. The available roles are :
Owner: have full control over the container and the contents of the container.
Manager: can add, update, and delete contents of a container and also maintain permissions of the container but cannot delete a container.
Writer: can add, update, and delete content in the container.
Reader: can only view content in the container.

```yaml
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](/powershell/module/microsoft.powershell.core/about/about_commonparameters).

## INPUTS

### None

## OUTPUTS

### System.Object

## NOTES

## RELATED LINKS

[Intro to SharePoint Embedded Containers Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell)

[Get-SPOApplication](./Get-SPOApplication.md)

[Set-SPOContainer](./Set-SPOContainer.md)

[Get-SPODeletedContainer](./Get-SPODeletedContainer.md)

[Remove-SPOContainer](./Remove-SPOContainer.md)

[Remove-SPODeletedContainer](./Remove-SPODeletedContainer.md)

[Restore-SPODeletedContainer](./Restore-SPODeletedContainer.md)


Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
---
external help file: Microsoft.Online.SharePoint.PowerShell.dll-Help.xml
Module Name: Microsoft.Online.SharePoint.PowerShell
online version: https://learn.microsoft.com/powershell/module/sharepoint-online/remove-spocontaineruser
applicable: SharePoint Online
title: Remove-SPOContainerUser
schema: 2.0.0
author: ShreyasSar26
ms.author: shsaravanan
ms.reviewer:
---

# Remove-SPOContainerUser

## SYNOPSIS

Removes a user from an assigned role of a container.

## SYNTAX

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

## EXAMPLES

### Example 1

```powershell
Remove-SPOContainerUser 423poi45 -LoginName [email protected] Owmer
```

Example 1 removes the user with User Principal Name "[email protected]" from the role of an owner of container whose ContainerId is 423poi45 .

## PARAMETERS

-ContainerId

> Applicable: SharePoint Online

Use this parameter to specify the Container ID.

```yaml
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 Principal Name to whom a membership is to be assigned.

```yaml
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 membership role intended to be assigned to a user. The available roles are :
Owner: have full control over the container and the contents of the container.
Manager: can add, update, and delete contents of a container and also maintain permissions of the container but cannot delete a container.
Writer: can add, update, and delete content in the container.
Reader: can only view content in the container.

```yaml
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](/powershell/module/microsoft.powershell.core/about/about_commonparameters).

## INPUTS

### None

## OUTPUTS

### System.Object

## NOTES

## RELATED LINKS

[Intro to SharePoint Embedded Containers Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell)

[Get-SPOApplication](./Get-SPOApplication.md)

[Set-SPOContainer](./Set-SPOContainer.md)

[Get-SPODeletedContainer](./Get-SPODeletedContainer.md)

[Remove-SPOContainer](./Remove-SPOContainer.md)

[Remove-SPODeletedContainer](./Remove-SPODeletedContainer.md)

[Restore-SPODeletedContainer](./Restore-SPODeletedContainer.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
---
external help file: Microsoft.Online.SharePoint.PowerShell.dll-Help.xml
Module Name: Microsoft.Online.SharePoint.PowerShell
online version: https://learn.microsoft.com/powershell/module/sharepoint-online/set-spocontaineruser
applicable: SharePoint Online
title: Set-SPOContainerUser
schema: 2.0.0
author: ShreyasSar26
ms.author: shsaravanan
ms.reviewer:
---

# Set-SPOContainerUser

## SYNOPSIS

Reassigns the user from an already assigned role to a new role on a container.

## SYNTAX

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

## EXAMPLES

### Example 1

```powershell
Set-SPOContainerUser 423poi45 -LoginName [email protected] Manager
```

Example 1 reassigns the role of User Principal Name "[email protected]" to manager.

## PARAMETERS

-ContainerId

> Applicable: SharePoint Online

Use this parameter to specify the Container ID.

```yaml
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 Principal Name to whom a membership is to be assigned.

```yaml
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 membership role intended to be assigned to a user. The available roles are :
Owner: have full control over the container and the contents of the container.
Manager: can add, update, and delete contents of a container and also maintain permissions of the container but cannot delete a container.
Writer: can add, update, and delete content in the container.
Reader: can only view content in the container.

```yaml
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](/powershell/module/microsoft.powershell.core/about/about_commonparameters).

## INPUTS

### None

## OUTPUTS

### System.Object

## NOTES

## RELATED LINKS

[Intro to SharePoint Embedded Containers Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell)

[Get-SPOApplication](./Get-SPOApplication.md)

[Set-SPOContainer](./Set-SPOContainer.md)

[Get-SPODeletedContainer](./Get-SPODeletedContainer.md)

[Remove-SPOContainer](./Remove-SPOContainer.md)

[Remove-SPODeletedContainer](./Remove-SPODeletedContainer.md)

[Restore-SPODeletedContainer](./Restore-SPODeletedContainer.md)