Skip to content

Commit 23d0f0c

Browse files
authored
Update Set-SPOContainer.md
1 parent 04eec0e commit 23d0f0c

1 file changed

Lines changed: 39 additions & 2 deletions

File tree

sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainer.md

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,18 @@ Set-SPOContainer [-Identity] <SPOContainerPipeBind>
4949
[-SharingDomainRestrictionMode <SharingDomainRestrictionModes>] [-SharingAllowedDomainList <String>]
5050
[-SharingBlockedDomainList <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
5151
```
52-
52+
### PrincipalOwnerTransfer
53+
```
54+
Set-SPOContainer [-Identity] <SPOContainerPipeBind> -ExistingPrincipalOwner <String>
55+
-NewPrincipalOwner <String> [-WhatIf] [-Confirm] [<CommonParameters>]
56+
```
5357
## DESCRIPTION
5458

55-
For any parameters that are passed in, the `Set-SPOContainer` cmdlet sets or updates the setting for the active container identified by the parameter `Identity`. The cmdlet throws an error if the identity of an archived container is provided.
59+
For any parameters that are passed in, the `Set-SPOContainer` cmdlet sets or updates the setting for the active container identified by the parameter `Identity`. The cmdlet throws an error if the identity of an archived container is provided. The principal owner transfer operation is supported only for containers that are user-owned. Attempting to perform this operation on containers that are tenant-owned or group-owned will result in an error.
60+
61+
> [!IMPORTANT]
62+
> Always wait for the current principal owner transfer attempt to finish before reusing the cmdlet. Concurrent or premature reuse can lead to incomplete or invalid ownership changes.
63+
>
5664
5765
You must be a SharePoint Embedded Administrator to run the cmdlet.
5866

@@ -182,6 +190,21 @@ Accept pipeline input: False
182190
Accept wildcard characters: False
183191
```
184192
193+
### -ExistingPrincipalOwner
194+
The current principal owner of the container.
195+
196+
```yaml
197+
Type: String
198+
Parameter Sets: PrincipalOwnerTransfer
199+
Aliases:
200+
201+
Required: True
202+
Position: Named
203+
Default value: None
204+
Accept pipeline input: False
205+
Accept wildcard characters: False
206+
```
207+
185208
### -Identity
186209
187210
Use this parameter to specify the container url.
@@ -220,6 +243,20 @@ Accept pipeline input: False
220243
Accept wildcard characters: False
221244
```
222245
246+
### -NewPrincipalOwner
247+
The new user to whom a user-owned container's lifecycle will be tied to.
248+
```yaml
249+
Type: String
250+
Parameter Sets: PrincipalOwnerTransfer
251+
Aliases:
252+
253+
Required: True
254+
Position: Named
255+
Default value: None
256+
Accept pipeline input: False
257+
Accept wildcard characters: False
258+
```
259+
223260
### -ReadOnlyForBlockDownloadPolicy
224261
Controls if read-only should be enabled for block download policy.
225262

0 commit comments

Comments
 (0)