From 79f8985f948acfaf4d3b3b0450895ca9763e8afe Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Mon, 11 Aug 2025 11:36:47 +0530 Subject: [PATCH 01/22] Create Add-SPOContainerUser --- .../Add-SPOContainerUser | 127 ++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser new file mode 100644 index 000000000..3c0ed8f71 --- /dev/null +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser @@ -0,0 +1,127 @@ +--- +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] -LoginName -Role [] +``` + + +## EXAMPLES + +### Example 1 + + +```powershell +Add-SPOContainerUser 423poi45 -LoginName shras@contoso.com-Role Owmer +``` + +Example 1 assigns the role of owner to user with User Principal Name "shras@contoso.com" + +## 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) + + From 150cd3e8448e5ed44a68eb665c12c00401ea66f3 Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Mon, 11 Aug 2025 11:37:51 +0530 Subject: [PATCH 02/22] Update Add-SPOContainerUser --- .../Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser | 2 -- 1 file changed, 2 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser index 3c0ed8f71..556d3806b 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser @@ -22,12 +22,10 @@ Assigns a particular membership of a container to users. Add-SPOContainerUser [-ContainerId] -LoginName -Role [] ``` - ## EXAMPLES ### Example 1 - ```powershell Add-SPOContainerUser 423poi45 -LoginName shras@contoso.com-Role Owmer ``` From d7598be98f3354d03d76addff5752df3ecf76180 Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Mon, 11 Aug 2025 12:00:57 +0530 Subject: [PATCH 03/22] Create Remove-SPOContainerUser --- .../Remove-SPOContainerUser | 123 ++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser new file mode 100644 index 000000000..6735993c5 --- /dev/null +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser @@ -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 membership of a container. + +## SYNTAX + +``` +Remove-SPOContainerUser [-ContainerId] -LoginName -Role [] +``` + +## EXAMPLES + +### Example 1 + +```powershell +Remove-SPOContainerUser 423poi45 -LoginName shras@contoso.com-Role Owmer +``` + +Example 1 removes the user with User Principal Name "shras@contoso.com" from the role of an owner. + +## 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) From 6fd5cce872e0e671bb70decf27465d8891a4f84f Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Mon, 11 Aug 2025 13:16:26 +0530 Subject: [PATCH 04/22] Create Set-SPOContainerUser --- .../Set-SPOContainerUser | 123 ++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser new file mode 100644 index 000000000..4da5ce418 --- /dev/null +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser @@ -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] -LoginName -Role [ +``` + +## EXAMPLES + +### Example 1 + +```powershell +Set-SPOContainerUser 423poi45 -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 + +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) From dedc559095a636a4f71af25728b549d3bf8f615e Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Mon, 11 Aug 2025 14:10:02 +0530 Subject: [PATCH 05/22] Update Remove-SPOContainerUser --- .../Remove-SPOContainerUser | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser index 6735993c5..38663043b 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser @@ -14,7 +14,7 @@ ms.reviewer: ## SYNOPSIS -Removes a user from an assigned membership of a container. +Removes a user from an assigned role of a container. ## SYNTAX @@ -30,7 +30,7 @@ Remove-SPOContainerUser [-ContainerId] -LoginName -Role Date: Wed, 20 Aug 2025 14:37:49 +0530 Subject: [PATCH 06/22] Update Add-SPOContainerUser --- .../Add-SPOContainerUser | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser index 556d3806b..7b87d0bd7 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser @@ -14,7 +14,7 @@ ms.reviewer: ## SYNOPSIS -Assigns a particular membership of a container to users. +Adds a user to a container with a specified role. ## SYNTAX @@ -30,7 +30,7 @@ Add-SPOContainerUser [-ContainerId] -LoginName -Role Add-SPOContainerUser 423poi45 -LoginName shras@contoso.com-Role Owmer ``` -Example 1 assigns the role of owner to user with User Principal Name "shras@contoso.com" +Example 1 assigns the role of owner to user with User Principal Name "shras@contoso.com". ## PARAMETERS @@ -38,7 +38,7 @@ Example 1 assigns the role of owner to user with User Principal Name "shras@cont > Applicable: SharePoint Online -Use this parameter to specify the Container ID. +The unique identifier of the container to which the user is being added. ```yaml Type: String @@ -56,7 +56,7 @@ Accept wildcard characters: False > Applicable: SharePoint Online -The User Principal Name to whom a membership is to be assigned. +The user’s login name to assign to the container. This is the User Principal Name. ```yaml Type: String @@ -74,11 +74,13 @@ Accept wildcard characters: False > 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. +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. + ```yaml Type: String From 20c297efbee40c80eca033c5d5c9d1567d3cb9de Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Wed, 20 Aug 2025 14:47:48 +0530 Subject: [PATCH 07/22] Update Add-SPOContainerUser --- .../Add-SPOContainerUser | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser index 7b87d0bd7..e1b4d8cb7 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser @@ -22,6 +22,19 @@ Adds a user to a container with a specified role. Add-SPOContainerUser [-ContainerId] -LoginName -Role [] ``` +##DESCRIPTION + +Adds a user to a SharePoint Embedded container and assigns a specific role. +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](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell). + +> [!NOTE] +> A user can be assigned to only one role within a container at a time. +> The roles **owner** and **principal owner** are distinct. A container can have multiple owners, but only one principal owner at any time. +> Principal ownership of a container can't be added—it can only be transferred. + + ## EXAMPLES ### Example 1 From 9bddbad2ffe860970b317b6db9442b2096f127a2 Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Wed, 20 Aug 2025 15:01:11 +0530 Subject: [PATCH 08/22] Update Add-SPOContainerUser --- .../Add-SPOContainerUser | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser index e1b4d8cb7..e379a3a0c 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser @@ -14,7 +14,7 @@ ms.reviewer: ## SYNOPSIS -Adds a user to a container with a specified role. +Adds a user to a SharePoint Embedded container with a specified role. ## SYNTAX @@ -24,7 +24,7 @@ Add-SPOContainerUser [-ContainerId] -LoginName -Role ##DESCRIPTION -Adds a user to a SharePoint Embedded container and assigns a specific role. +Assigns a user to a defined role within a SharePoint Embedded container. You must specify the container ID, the user's login name, and the role to be assigned. This cmdlet is used to grant access and permissions based on role membership. 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](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell). From 04a795ff3137f9585cf1a9a6d7ce053a1bc40048 Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Wed, 20 Aug 2025 15:01:54 +0530 Subject: [PATCH 09/22] Update Remove-SPOContainerUser --- .../Remove-SPOContainerUser | 29 ++++++++++++++----- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser index 38663043b..ff47045a9 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser @@ -14,7 +14,7 @@ ms.reviewer: ## SYNOPSIS -Removes a user from an assigned role of a container. +Removes a user from a specified role in a SharePoint Embedded container. ## SYNTAX @@ -22,6 +22,18 @@ Removes a user from an assigned role of a container. Remove-SPOContainerUser [-ContainerId] -LoginName -Role [] ``` +##DESCRIPTION + +Removes a user from a defined role within a SharePoint Embedded container. Use this cmdlet when you need to revoke a user's access or change their assigned role. The user must be currently assigned to the specified role in the container for the removal to succeed. + +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](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell). + +> [!NOTE] +> You can't remove the principal owner of a container. + + ## EXAMPLES ### Example 1 @@ -38,7 +50,7 @@ Example 1 removes the user with User Principal Name "shras@contoso.com" from the > Applicable: SharePoint Online -Use this parameter to specify the Container ID. +The unique identifier of the container to which the user is being added. ```yaml Type: String @@ -56,7 +68,7 @@ Accept wildcard characters: False > Applicable: SharePoint Online -The User Principal Name to whom a membership is to be assigned. +The user’s login name to assign to the container. This is the User Principal Name. ```yaml Type: String @@ -74,11 +86,12 @@ Accept wildcard characters: False > 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. +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. ```yaml Type: String From e726204c5e91e7991d436aec5a0c4840066aee03 Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Wed, 20 Aug 2025 15:11:22 +0530 Subject: [PATCH 10/22] Update Remove-SPOContainerUser --- .../Remove-SPOContainerUser | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser index ff47045a9..acd47382b 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser @@ -68,7 +68,7 @@ Accept wildcard characters: False > Applicable: SharePoint Online -The user’s login name to assign to the container. This is the User Principal Name. +The user’s login name to assign to the container. This is the User Principal Name. ```yaml Type: String @@ -93,6 +93,7 @@ Manager: Can add, update, and delete content, and manage permissions, but can't Writer: Can add, update, and delete content in the container. Reader: Can only view content in the container. + ```yaml Type: String Parameter Sets: (All) @@ -123,14 +124,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable [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) +[Add-SPOContainerUser](./Add-SPOContainerUser.md) -[Get-SPODeletedContainer](./Get-SPODeletedContainer.md) +[Set-SPOContainerUser](./Set-SPOContainerUser.md) -[Remove-SPOContainer](./Remove-SPOContainer.md) +[Set-SPOContainer](./Set-SPOContainer.md) -[Remove-SPODeletedContainer](./Remove-SPODeletedContainer.md) +[Get-SPOContainer](./Get-SPOContainer.md) -[Restore-SPODeletedContainer](./Restore-SPODeletedContainer.md) From 1d353261b5032ab2a3ec7bbe3ec8cd2787f08a44 Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Wed, 20 Aug 2025 15:13:04 +0530 Subject: [PATCH 11/22] Update Set-SPOContainerUser --- .../Set-SPOContainerUser | 42 ++++++++++++------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser index 4da5ce418..529b216ab 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser @@ -14,7 +14,7 @@ ms.reviewer: ## SYNOPSIS -Reassigns the user from an already assigned role to a new role on a container. +Reassigns a user from their current role to a new role within a SharePoint Embedded container. ## SYNTAX @@ -22,6 +22,19 @@ Reassigns the user from an already assigned role to a new role on a container. Set-SPOContainerUser [-ContainerId] -LoginName -Role [ ``` +##DESCRIPTION + +Updates a user's assigned role within a SharePoint Embedded container. Use this cmdlet to reassign a user from their current role to a new one. You must specify the container ID, the user's login name, and the new role. + +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](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-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 @@ -38,7 +51,7 @@ Example 1 reassigns the role of User Principal Name "shras@contoso.com" to manag > Applicable: SharePoint Online -Use this parameter to specify the Container ID. +The unique identifier of the container to which the user is being added. ```yaml Type: String @@ -56,7 +69,7 @@ Accept wildcard characters: False > Applicable: SharePoint Online -The User Principal Name to whom a membership is to be assigned. +The user’s login name to assign to the container. This is the User Principal Name. ```yaml Type: String @@ -74,11 +87,13 @@ Accept wildcard characters: False > 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. +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. + ```yaml Type: String @@ -110,14 +125,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable [Intro to SharePoint Embedded Containers Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell) -[Get-SPOApplication](./Get-SPOApplication.md) +[Add-SPOContainerUser](./Add-SPOContainerUser.md) -[Set-SPOContainer](./Set-SPOContainer.md) +[Set-SPOContainerUser](./Set-SPOContainerUser.md) -[Get-SPODeletedContainer](./Get-SPODeletedContainer.md) - -[Remove-SPOContainer](./Remove-SPOContainer.md) +[Set-SPOContainer](./Set-SPOContainer.md) -[Remove-SPODeletedContainer](./Remove-SPODeletedContainer.md) +[Get-SPOContainer](./Get-SPOContainer.md) -[Restore-SPODeletedContainer](./Restore-SPODeletedContainer.md) From 5c929bc74e29ee48598c0eefbc2dc842a2a2ebd1 Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Wed, 20 Aug 2025 15:13:42 +0530 Subject: [PATCH 12/22] Update Add-SPOContainerUser --- .../Add-SPOContainerUser | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser index e379a3a0c..9f12567b9 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser @@ -25,6 +25,7 @@ Add-SPOContainerUser [-ContainerId] -LoginName -Role ##DESCRIPTION Assigns a user to a defined role within a SharePoint Embedded container. You must specify the container ID, the user's login name, and the role to be assigned. This cmdlet is used to grant access and permissions based on role membership. + 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](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell). @@ -125,16 +126,14 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable [Intro to SharePoint Embedded Containers Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell) -[Get-SPOApplication](./Get-SPOApplication.md) +[Set-SPOContainerUser](./Set-SPOContainerUser.md) -[Set-SPOContainer](./Set-SPOContainer.md) +[Remove-SPOContainerUser](./Remove-SPOContainerUser.md) -[Get-SPODeletedContainer](./Get-SPODeletedContainer.md) +[Set-SPOContainer](./Set-SPOContainer.md) -[Remove-SPOContainer](./Remove-SPOContainer.md) +[Get-SPOContainer](./Get-SPOContainer.md) -[Remove-SPODeletedContainer](./Remove-SPODeletedContainer.md) -[Restore-SPODeletedContainer](./Restore-SPODeletedContainer.md) From 6aad8bb413097252dda6bd28bfd5771ed960d10d Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Thu, 21 Aug 2025 11:58:58 +0530 Subject: [PATCH 13/22] Update Microsoft.Online.SharePoint.PowerShell.md --- .../Microsoft.Online.SharePoint.PowerShell.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md index f5bbd67c7..44aff4995 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md @@ -18,6 +18,9 @@ The following cmdlet references are for SharePoint Online. ### [Add-SPOContainerTypeBilling](Add-SPOContainerTypeBilling.md) Adds the mentioned billing profile details to a standard container type. +### [Add-SPOContainerUser](Add-SPOContainerUser.md) +Adds a user to a SharePoint Embedded container with a specified role. + ### [Add-SPOContentSecurityPolicy](Add-SPOContentSecurityPolicy.md) Adds a source to the **Content Security Policy** configuration. @@ -489,6 +492,9 @@ Sends a Container to the Recycle Bin. ### [Remove-SPOContainerType](Remove-SPOContainerType.md) This cmdlet removes the container type specified from the tenant. +### [Remove-SPOContainerUser](Remove-SPOContainerUser.md) +This cmdlet removes the container type specified from the tenant. + ### [Remove-SPOContentEventEmailAddresses](Remove-SPOContentEventEmailAddresses.md) Removes the email addresses associated with the specified category of content event if they exist. Consequently, notification emails will no longer be sent to these addresses. @@ -666,6 +672,9 @@ Sets or updates one or more property values of a trial, standard or a direct to ### [Set-SPOContainerTypeConfiguration](Set-SPOContainerTypeConfiguration.md) Sets or updates the configuration settings of a container type in SharePoint Embedded. +### [Set-SPOContainerUser](Set-SPOContainerUser.md) +Reassigns a user from their current role to a new role within a SharePoint Embedded container. + ### [Set-SPOContentEventEmailAddresses](Set-SPOContentEventEmailAddresses.md) Adds the email addresses to the specified category of content event. Consequently, notification emails will be sent to these addresses. From 884e8e0f8283929ab354e98fa3901cfa4d3da9c1 Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Thu, 21 Aug 2025 12:02:49 +0530 Subject: [PATCH 14/22] Update Add-SPOContainerUser --- .../Add-SPOContainerUser | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser index 9f12567b9..70ffe7bf1 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser @@ -24,7 +24,7 @@ Add-SPOContainerUser [-ContainerId] -LoginName -Role ##DESCRIPTION -Assigns a user to a defined role within a SharePoint Embedded container. You must specify the container ID, the user's login name, and the role to be assigned. This cmdlet is used to grant access and permissions based on role membership. +Assigns a user to a defined role within a SharePoint Embedded container. You must be a SharePoint Embedded Administrator to run this cmdlet. @@ -32,7 +32,7 @@ For permissions and the most current information about Windows PowerShell for Sh > [!NOTE] > A user can be assigned to only one role within a container at a time. -> The roles **owner** and **principal owner** are distinct. A container can have multiple owners, but only one principal owner at any time. +> **Owner** and **principal owner** are distinct. A container can have multiple owners, but only one principal owner at any time. > Principal ownership of a container can't be added—it can only be transferred. From e3a5c1f7d57e08c1d21193f363a2b42f7531f324 Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Thu, 21 Aug 2025 12:03:17 +0530 Subject: [PATCH 15/22] Update Set-SPOContainerUser --- .../Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser index 529b216ab..38f20a76b 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser @@ -24,7 +24,7 @@ Set-SPOContainerUser [-ContainerId] -LoginName -Role ##DESCRIPTION -Updates a user's assigned role within a SharePoint Embedded container. Use this cmdlet to reassign a user from their current role to a new one. You must specify the container ID, the user's login name, and the new role. +Updates a user's assigned role within a SharePoint Embedded container. You must be a SharePoint Embedded Administrator to run this cmdlet. From b338d4995ade1f6a5af30dd913473c67ff10dfb9 Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Thu, 21 Aug 2025 12:04:33 +0530 Subject: [PATCH 16/22] Update Remove-SPOContainerUser --- .../Remove-SPOContainerUser | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser index acd47382b..a7dac38dd 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser @@ -24,7 +24,7 @@ Remove-SPOContainerUser [-ContainerId] -LoginName -Role Date: Fri, 22 Aug 2025 10:14:44 +0530 Subject: [PATCH 17/22] Rename Add-SPOContainerUser to Add-SPOContainerUser.md --- .../{Add-SPOContainerUser => Add-SPOContainerUser.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/{Add-SPOContainerUser => Add-SPOContainerUser.md} (100%) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser.md similarity index 100% rename from sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser rename to sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser.md From 5fde18723fca9f5b94d2e95187ad2377f2aed6dd Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Fri, 22 Aug 2025 10:15:08 +0530 Subject: [PATCH 18/22] Rename Remove-SPOContainerUser to Remove-SPOContainerUser.md --- .../{Remove-SPOContainerUser => Remove-SPOContainerUser.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/{Remove-SPOContainerUser => Remove-SPOContainerUser.md} (100%) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser.md similarity index 100% rename from sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser rename to sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser.md From a4efe0917cc1ac4bcdc8b41427a540eff53558d9 Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Fri, 22 Aug 2025 10:15:23 +0530 Subject: [PATCH 19/22] Rename Set-SPOContainerUser to Set-SPOContainerUser.md --- .../{Set-SPOContainerUser => Set-SPOContainerUser.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/{Set-SPOContainerUser => Set-SPOContainerUser.md} (100%) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser.md similarity index 100% rename from sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser rename to sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser.md From 4472e1df63d0ef7a7975c01e53c98983ba4dc09a Mon Sep 17 00:00:00 2001 From: Ruchika Mittal Date: Fri, 22 Aug 2025 21:41:03 +0530 Subject: [PATCH 20/22] typo fix --- .../Add-SPOContainerUser.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser.md index 70ffe7bf1..af42b3e51 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser.md @@ -41,7 +41,7 @@ For permissions and the most current information about Windows PowerShell for Sh ### Example 1 ```powershell -Add-SPOContainerUser 423poi45 -LoginName shras@contoso.com-Role Owmer +Add-SPOContainerUser 423poi45 -LoginName shras@contoso.com-Role Owner ``` Example 1 assigns the role of owner to user with User Principal Name "shras@contoso.com". From 35b3078e4f22b573e2b790aa9e50b7c89b0ed419 Mon Sep 17 00:00:00 2001 From: Ruchika Mittal Date: Fri, 22 Aug 2025 21:45:46 +0530 Subject: [PATCH 21/22] typo fix 2 --- .../Microsoft.Online.SharePoint.PowerShell.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md index 44aff4995..d0e494586 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md @@ -484,7 +484,7 @@ Cmdlet to register customer encryption status for your geo tenant. For more info Enables the hub site feature on a site to make it a hub site. For more information visit [SharePoint hub sites overview](/sharepoint/dev/features/hub-site/hub-site-overview). ### [Remove-SPOAppBillingPolicy](Remove-SPOAppBillingPolicy.md) -Removes billing policy asscoiated with the application. +Removes billing policy associated with the application. ### [Remove-SPOContainer](Remove-SPOContainer.md) Sends a Container to the Recycle Bin. From b70f0df3f53fe03bc2a6f6ea6479c2cddecd5c0d Mon Sep 17 00:00:00 2001 From: Ruchika Mittal Date: Fri, 22 Aug 2025 21:47:14 +0530 Subject: [PATCH 22/22] typo fix 3 --- .../Remove-SPOContainerUser.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser.md index a7dac38dd..f6eedf0df 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser.md @@ -39,7 +39,7 @@ For permissions and the most current information about Windows PowerShell for Sh ### Example 1 ```powershell -Remove-SPOContainerUser 423poi45 -LoginName shras@contoso.com-Role Owmer +Remove-SPOContainerUser 423poi45 -LoginName shras@contoso.com-Role Owner ``` Example 1 removes the user with User Principal Name "shras@contoso.com" from the role of an owner of container whose ContainerId is 423poi45 .