You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assigns a user to a defined role within a SharePoint Embedded container.
28
+
29
+
You must be a SharePoint Embedded Administrator to run this cmdlet.
30
+
31
+
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).
32
+
33
+
> [!NOTE]
34
+
> A user can be assigned to only one role within a container at a time.
35
+
> **Owner** and **principal owner** are distinct. A container can have multiple owners, but only one principal owner at any time.
36
+
> Principal ownership of a container can't be added—it can only be transferred.
Example 1 assigns the role of owner to user with User Principal Name "shras@contoso.com".
48
+
49
+
## PARAMETERS
50
+
51
+
-ContainerId
52
+
53
+
> Applicable: SharePoint Online
54
+
55
+
The unique identifier of the container to which the user is being added.
56
+
57
+
```yaml
58
+
Type: String
59
+
Parameter Sets: (All)
60
+
Aliases:
61
+
62
+
Required: True
63
+
Position: 0
64
+
Default value: None
65
+
Accept pipeline input: False
66
+
Accept wildcard characters: False
67
+
```
68
+
69
+
-LoginName
70
+
71
+
> Applicable: SharePoint Online
72
+
73
+
The user’s login name to assign to the container. This is the User Principal Name.
74
+
75
+
```yaml
76
+
Type: String
77
+
Parameter Sets: (All)
78
+
Aliases:
79
+
80
+
Required: True
81
+
Position: Named
82
+
Default value: None
83
+
Accept pipeline input: False
84
+
Accept wildcard characters: False
85
+
```
86
+
87
+
-Role
88
+
89
+
> Applicable: SharePoint Online
90
+
91
+
The role to assign to the user within the container. Valid roles are:
92
+
93
+
Owner: Has full control over the container and its contents.
94
+
Manager: Can add, update, and delete content, and manage permissions, but can't delete the container.
95
+
Writer: Can add, update, and delete content in the container.
96
+
Reader: Can only view content in the container.
97
+
98
+
99
+
```yaml
100
+
Type: String
101
+
Parameter Sets: (All)
102
+
Aliases:
103
+
Accepted values: Owner, Reader, Writer, Manager
104
+
105
+
Required: True
106
+
Position: Named
107
+
Default value: None
108
+
Accept pipeline input: False
109
+
Accept wildcard characters: False
110
+
```
111
+
112
+
### CommonParameters
113
+
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).
114
+
115
+
## INPUTS
116
+
117
+
### None
118
+
119
+
## OUTPUTS
120
+
121
+
### System.Object
122
+
123
+
## NOTES
124
+
125
+
## RELATED LINKS
126
+
127
+
[Intro to SharePoint Embedded Containers Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell)
@@ -50,73 +59,90 @@ You must be a SharePoint Embedded Administrator to run this cmdlet.
50
59
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).
51
60
52
61
> [!NOTE]
53
-
> Containers in the Recycle Bin will not be retrieved by using the `Get-SPOContainer` cmdlet.
54
-
> The OwningApplicationId for Microsoft Loop is `a187e399-0c36-4b98-8f04-1edc167a0996`.
55
-
> The OwningApplicationId for Microsoft Designer is `5e2795e3-ce8c-4cfb-b302-35fe5cd01597`.
62
+
> You can't retrieve containers in the Recycle Bin using this cmdlet.
63
+
>
64
+
> Use the following `OwningApplicationId` values to identify specific Microsoft applications:
Example 7 displays the next list of paged view of containers belonging to the application, sorted in ascending order of storage.
137
+
Example 8 displays the next list of paged view of containers belonging to the application, sorted in ascending order of storage.
112
138
113
-
### Example 8
139
+
### Example 9
114
140
115
141
```powershell
116
142
Get-SPOContainer -OwningApplicationId 423poi45 -ArchiveStatus RecentlyArchived | ft
117
143
```
118
144
119
-
Example 8 returns a tabular list of recently archived containers belonging to the SharePoint Embedded application with the OwningApplicationId of 423poi45.
145
+
Example 9 returns a tabular list of recently archived containers belonging to the SharePoint Embedded application with the OwningApplicationId of 423poi45.
120
146
121
147
## PARAMETERS
122
148
@@ -130,7 +156,7 @@ The ArchiveStatus parameter is used to display containers in various stages of a
130
156
- RecentlyArchived – Displays containers in the "Recently archived" state.
131
157
- FullyArchived – Displays containers in the "Fully archived" state.
132
158
- Reactivating – Displays containers in the "Reactivating" state.
Use this parameter to provide the paging token to view the remaining containers as shown in Example 4. If there are no more containers to display, the cmdlet output will return the message `End of containers view.` Otherwise, use the given paging token to retrieve the next batch of up to 200 containers. For displaying the next set of archived containers, `-ArchiveStatus` paramter needs to be used along with this parameter.
232
+
Use this parameter to provide the paging token to view the remaining containers as shown in Example 4. If there are no more containers to display, the cmdlet output will return the message `End of containers view.` Otherwise, use the given paging token to retrieve the next batch of up to 200 containers. For displaying the next set of archived containers, `-ArchiveStatus` parameter needs to be used along with this parameter.
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).
Adds a source to the **Content Security Policy** configuration.
23
26
@@ -481,14 +484,17 @@ Cmdlet to register customer encryption status for your geo tenant. For more info
481
484
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).
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.
494
500
@@ -666,6 +672,9 @@ Sets or updates one or more property values of a trial, standard or a direct to
0 commit comments