-
Notifications
You must be signed in to change notification settings - Fork 181
Membership management changes #981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ShreyasSar26
wants to merge
6
commits into
MicrosoftDocs:main
Choose a base branch
from
ShreyasSar26:patch-PS
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
79f8985
Create Add-SPOContainerUser
ShreyasSar26 150cd3e
Update Add-SPOContainerUser
ShreyasSar26 d7598be
Create Remove-SPOContainerUser
ShreyasSar26 6fd5cce
Create Set-SPOContainerUser
ShreyasSar26 dedc559
Update Remove-SPOContainerUser
ShreyasSar26 1cac876
Merge branch 'main' into patch-PS
ShreyasSar26 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
125 changes: 125 additions & 0 deletions
125
sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOContainerUser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
||
|
123 changes: 123 additions & 0 deletions
123
sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOContainerUser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
123 changes: 123 additions & 0 deletions
123
sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainerUser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file and the others: please use M365 Copilot to polish the strings. Here's example for this one:
prompt:
output:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other suggestions from M365 Copilot:
ContainerId: The unique identifier of the container to which the user is being added.
LoginName: The user’s login name to assign to the container.
Role: The role to assign to the user within the container. Valid roles are: