-
Notifications
You must be signed in to change notification settings - Fork 187
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
26 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 1dc6392
Merge branch 'main' into patch-PS
ShreyasSar26 262c933
Update Add-SPOContainerUser
ShreyasSar26 20c297e
Update Add-SPOContainerUser
ShreyasSar26 9bddbad
Update Add-SPOContainerUser
ShreyasSar26 04a795f
Update Remove-SPOContainerUser
ShreyasSar26 e726204
Update Remove-SPOContainerUser
ShreyasSar26 1d35326
Update Set-SPOContainerUser
ShreyasSar26 5c929bc
Update Add-SPOContainerUser
ShreyasSar26 8433113
Merge branch 'main' into patch-PS
ShreyasSar26 6aad8bb
Update Microsoft.Online.SharePoint.PowerShell.md
ShreyasSar26 884e8e0
Update Add-SPOContainerUser
ShreyasSar26 e3a5c1f
Update Set-SPOContainerUser
ShreyasSar26 b338d49
Update Remove-SPOContainerUser
ShreyasSar26 01a2d69
Rename Add-SPOContainerUser to Add-SPOContainerUser.md
ShreyasSar26 5fde187
Rename Remove-SPOContainerUser to Remove-SPOContainerUser.md
ShreyasSar26 a4efe09
Rename Set-SPOContainerUser to Set-SPOContainerUser.md
ShreyasSar26 46c0d4f
Merge branch 'main' into patch-PS
ShreyasSar26 4472e1d
typo fix
Ruchika-mittal01 35b3078
typo fix 2
Ruchika-mittal01 b70f0df
typo fix 3
Ruchika-mittal01 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.