forked from MicrosoftDocs/OfficeDocs-SharePoint-PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRemove-SPOContainerUser
More file actions
123 lines (84 loc) · 2.93 KB
/
Remove-SPOContainerUser
File metadata and controls
123 lines (84 loc) · 2.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
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 shras@contoso.com-Role Owmer
```
Example 1 removes the user with User Principal Name "shras@contoso.com" 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)