Skip to content

Commit f674323

Browse files
Merge pull request #1081 from MicrosoftDocs/main
[AutoPublish] main to live - 11/17 13:30 PST | 11/18 03:00 IST
2 parents 14a2547 + 966da7a commit f674323

File tree

6 files changed

+424
-7
lines changed

6 files changed

+424
-7
lines changed
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
external help file: Microsoft.Online.SharePoint.PowerShell.dll-Help.xml
3+
Module Name: Microsoft.Online.SharePoint.PowerShell
4+
online version: https://learn.microsoft.com/powershell/module/microsoft.online.sharepoint.powershell/get-sporestrictedsitecreationforapps
5+
applicable: SharePoint Online
6+
title: Get-SPORestrictedSiteCreationForApps
7+
schema: 2.0.0
8+
author: vgaddam-pm
9+
ms.author: vgaddam
10+
ms.reviewer:
11+
---
12+
13+
# Get-SPORestrictedSiteCreationForApps
14+
15+
## SYNOPSIS
16+
17+
This cmdlet allows SharePoint Administrators to check the current configuration of the restricted site creation for apps feature.
18+
19+
## SYNTAX
20+
21+
```
22+
Get-SPORestrictedSiteCreationForApps [-SiteType <RestrictedSiteCreationSiteType>] [<CommonParameters>]
23+
```
24+
25+
## DESCRIPTION
26+
27+
This cmdlet obtains the current configuration information for the restricted site creation for apps feature, including whether it is enabled, the current mode, and the current policies.
28+
29+
> [!Note]
30+
> This feature is currently in preview and may not be available in your tenant.
31+
32+
## EXAMPLES
33+
34+
### Example 1
35+
36+
```powershell
37+
Get-SPORestrictedSiteCreationForApps
38+
```
39+
40+
Example 1 returns all configuration information for the restricted site creation for apps feature. This includes whether the feature is enabled, the current mode (deny or allow), and the app IDs configured for each site type.
41+
42+
### Example 2
43+
44+
```powershell
45+
Get-SPORestrictedSiteCreation –SiteType Communication
46+
```
47+
48+
Example 2 returns a comma-separated list of the app IDs for the `Communication` site type. Depending on whether restricted site creation is in allow or deny mode, these apps are either allowed or denied from creating SharePoint communication sites.
49+
50+
## PARAMETERS
51+
52+
### -SiteType
53+
54+
> Applicable: SharePoint Online
55+
When provided, only return the Microsoft Entra security groups configured for the specified site type.
56+
57+
PARAMVALUE: All | SharePoint | OneDrive | Team | Communication
58+
- All - OneDrive and all SharePoint sites
59+
- SharePoint - All SharePoint sites (but not OneDrive)
60+
- OneDrive - Only OneDrive
61+
- Team - Only SharePoint team sites (group-connected and classic)
62+
- Communication - Only SharePoint communication sites
63+
64+
```yaml
65+
Type: Microsoft.SharePoint.Administration.SPOnlineProvisioning.RestrictedSiteCreationSiteType
66+
Parameter Sets: (All)
67+
Aliases:
68+
Accepted values: All, SharePoint, OneDrive, Team, Communication
69+
70+
Required: False
71+
Position: Named
72+
Default value: None
73+
Accept pipeline input: False
74+
Accept wildcard characters: False
75+
```
76+
77+
### CommonParameters
78+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
79+
80+
## INPUTS
81+
82+
### None
83+
84+
## OUTPUTS
85+
86+
### System.Object
87+
88+
## NOTES
89+
90+
## RELATED LINKS
91+
92+
[Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online)
93+
94+
[Set-SPORestrictedSiteCreationForApps](Set-SPORestrictedSiteCreationForApps.md)

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ This cmdlet enables the administrator to check status of all active and availabl
279279
### [Get-SPORestrictedSiteCreation](Get-SPORestrictedSiteCreation.md)
280280
This cmdlet allows SharePoint administrators to check the current configuration of the restricted site creation feature.
281281

282+
### [Get-SPORestrictedSiteCreationForApps](Get-SPORestrictedSiteCreationForApps.md)
283+
This cmdlet allows SharePoint administrators to check the current configuration of the restricted site creation for apps feature. > [!NOTE] > This feature is currently in preview and may not be available in your tenant.
284+
282285
### [Get-SPOServicePrioritizationAppRegistrations](Get-SPOServicePrioritizationAppRegistrations.md)
283286
Retrieves the list of app registrations configured for service prioritization in SharePoint Online.
284287

@@ -726,6 +729,9 @@ Marks a site as one of multiple possible tenant's organizational news sites. Req
726729
### [Set-SPORestrictedSiteCreation](Set-SPORestrictedSiteCreation.md)
727730
Sets or updates one or more group configurations for restricting site creation.
728731

732+
### [Set-SPORestrictedSiteCreationForApps](Set-SPORestrictedSiteCreationForApps.md)
733+
Sets or updates one or more group configurations for restricting site creation for apps. > [!NOTE] > This feature is currently in preview and may not be available in your tenant.
734+
729735
### [Set-SPOServicePrioritizationAppRegistration](Set-SPOServicePrioritizationAppRegistration.md)
730736
Updates an existing app registration for service prioritization in SharePoint Online.
731737

sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/New-SPOContainerType.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This cmdlet creates a new container type of standard or trial status. The standa
2121
```
2222
New-SPOContainerType [-ContainerTypeName] <String> -OwningApplicationId <Guid>
2323
[-ApplicationRedirectUrl <String>] [-TrialContainerType] [-IsPassThroughBilling]
24-
[-IsGovernableByAdmin <Boolean>] [-WhatIf] [-Confirm] [<CommonParameters>]
24+
[-IsGovernableByAdmin <Boolean>] [-IsArchiveEnabled <Boolean>] [-WhatIf] [-Confirm] [<CommonParameters>]
2525
```
2626

2727
## DESCRIPTION
@@ -64,6 +64,14 @@ New-SPOContainerType -ContainerTypeName ContosoLegal -OwningApplicationId 2ce032
6464

6565
In Example 4, the cmdlet creates a standard container type, ContosoLegal that has opted out of management through Microsoft-enabled administrator platforms.
6666

67+
### Example 5
68+
69+
```powershell
70+
New-SPOContainerType -ContainerTypeName ContosoLegal -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332cf -IsArchiveEnabled $true
71+
```
72+
73+
In Example 5, the cmdlet creates a standard container type, ContosoLegal that supports archive and reactivate actions on its containers.
74+
6775
## PARAMETERS
6876

6977
### -ApplicationRedirectUrl
@@ -102,6 +110,24 @@ Accept pipeline input: False
102110
Accept wildcard characters: False
103111
```
104112
113+
### -IsArchiveEnabled
114+
115+
> Applicable: SharePoint Online
116+
117+
Use the `-IsArchiveEnabled` flag to enable archival of containers. Archival moves data to the cold tier, reducing storage costs. While archived, content is inaccessible until reactivated. Reactivation is immediate within the first seven days and can take up to 24 hours afterward. If you don't include this flag, the value defaults to `False`, and all archive API calls fail. After you update the flag, allow up to 24 hours for the change to take effect in the consuming tenant.
118+
119+
```yaml
120+
Type: System.Boolean
121+
Parameter Sets: (All)
122+
Aliases:
123+
124+
Required: False
125+
Position: Named
126+
Default value: False
127+
Accept pipeline input: False
128+
Accept wildcard characters: False
129+
```
130+
105131
### -IsGovernableByAdmin
106132

107133
> Applicable: SharePoint Online

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

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Set-SPOContainerTypeConfiguration -ContainerTypeId <Guid> [-DiscoverabilityDisab
2424
[-WhoCanShareAuthenticatedGuestAllowList <Guid[]>] [-OverrideTenantWhoCanShareAnonymousAllowList <Boolean>]
2525
[-OverrideTenantWhoCanShareAuthenticatedGuestAllowList <Boolean>]
2626
[-CopilotEmbeddedChatHosts <System.Collections.Generic.List`1[System.String]>]
27-
[-AnonymousLinkExpirationInDays <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
27+
[-AnonymousLinkExpirationInDays <Int32>] [-IsArchiveEnabled <Boolean>] [-WhatIf] [-Confirm] [<CommonParameters>]
2828
```
2929

3030
## DESCRIPTION
@@ -82,6 +82,14 @@ Set-SPOContainerTypeConfiguration -ContainerTypeId 4f0af585-8dcc-0000-223d-661eb
8282
```
8383
This example sets the host URLs for the container type with Id 4f0af585-8dcc-0000-223d-661eb2c604e4.
8484

85+
### Example 7
86+
87+
```powershell
88+
Set-SPOContainerTypeConfiguration -ContainerTypeId 4f0af585-8dcc-0000-223d-661eb2c604e4 -IsArchiveEnabled $true
89+
```
90+
91+
Example 7 enables support for archive and reactivate actions on all the containers of ContainerTypeId 4f0af585-8dcc-0000-223d-661eb2c604e4.
92+
8593
## PARAMETERS
8694

8795
### -AnonymousLinkExpirationInDays
@@ -171,6 +179,22 @@ Accept pipeline input: False
171179
Accept wildcard characters: False
172180
```
173181
182+
### -IsArchiveEnabled
183+
184+
Use the `-IsArchiveEnabled` flag to enable archival of containers. Archival moves data to the cold tier, reducing storage costs. While archived, content is inaccessible until reactivated. Reactivation is immediate within the first seven days and can take up to 24 hours afterward. If you don't include this flag, the value defaults to `False`, and all archive API calls fail. After you update the flag, allow up to 24 hours for the change to take effect in the consuming tenant.
185+
186+
```yaml
187+
Type: System.Boolean
188+
Parameter Sets: (All)
189+
Aliases:
190+
191+
Required: False
192+
Position: Named
193+
Default value: False
194+
Accept pipeline input: False
195+
Accept wildcard characters: False
196+
```
197+
174198
### -OverrideTenantWhoCanShareAnonymousAllowList
175199

176200
This setting determines if the container type `WhoCanShareAnonymousAllowList` overrides the tenant-level `WhoCanShareAnonymousAllowList`.

0 commit comments

Comments
 (0)