Skip to content

Commit 7c83bc0

Browse files
authored
Merge pull request #759 from vgaddam-pm/patch-3
Create Get-SPORestrictedSiteCreation
2 parents 431e92d + e798259 commit 7c83bc0

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
external help file: sharepointonline.xml
3+
Module Name: Microsoft.Online.SharePoint.PowerShell
4+
online version: https://learn.microsoft.com/powershell/module/sharepoint-online/get-sporestrictedsitecreation
5+
applicable: SharePoint Online
6+
title: Get-SPORestrictedSiteCreation
7+
schema: 2.0.0
8+
author: vgaddam-pm
9+
ms.author: vgaddam
10+
ms.reviewer:
11+
---
12+
13+
# Get-SPORestrictedSiteCreation
14+
15+
## SYNOPSIS
16+
17+
This cmdlet allows SharePoint administrators to check the current configuration of the restricted site creation feature.
18+
19+
## SYNTAX
20+
21+
```powershell
22+
Get-SPORestrictedSiteCreation [-SiteType <RestrictedSiteCreationSiteType>]
23+
```
24+
25+
## DESCRIPTION
26+
27+
This cmdlet obtains the current configuration information for the restricted site creation feature, including whether it is enabled, the current mode, and the current policies.
28+
29+
> [!Important]
30+
>You must use version 16.0.25513.12000 (published November 2024) or later of the [SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online) for these commands to function properly. Earlier versions do not have the current list of site types and will not operate correctly.
31+
32+
## EXAMPLES
33+
34+
### Example 1
35+
36+
```powershell
37+
Get-SPORestrictedSiteCreation
38+
```
39+
40+
Example 1 returns all configuration information for the restricted site creation feature. This includes whether the feature is enabled, the current mode (deny or allow), and the Microsoft Entra security groups 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 IDs of the Microsoft Entra security groups configured for the `Communication` site type. Depending on whether restricted site creation is in allow or deny mode, members of these groups are either allowed or denied from creating SharePoint communication sites.
49+
50+
## PARAMETERS
51+
52+
### -SiteType
53+
When provided, only return the Microsoft Entra security groups configured for the specified site type.
54+
55+
PARAMVALUE: All | SharePoint | OneDrive | Team | Communication
56+
• All - OneDrive and all SharePoint sites
57+
• SharePoint - All SharePoint sites (but not OneDrive)
58+
• OneDrive - Only OneDrive
59+
• Team - Only SharePoint team sites (group-connected and classic)
60+
• Communication - Only SharePoint communication sites
61+
62+
```yaml
63+
Type: RestrictedSiteCreationSiteType
64+
Parameter Sets: (All)
65+
Applicable: SharePoint Online
66+
Required: False
67+
Position: Named
68+
Default value: None
69+
Accept pipeline input: False
70+
Accept wildcard characters: False
71+
```
72+
73+
## RELATED LINKS
74+
75+
[Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online)
76+
77+
For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at [Intro to SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell).

sharepoint/sharepoint-ps/sharepoint-online/sharepoint-online.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ The following cmdlet references are for SharePoint Online.
175175

176176
{{Manually Enter Get-SPOPublicCdnOrigins Description Here}}
177177

178+
### [Get-SPORestrictedSiteCreation](Get-SPORestrictedSiteCreation.md)
179+
180+
{{Gets group configurations for restricting site creation policy}}
181+
178182
### [Get-SPOSite](Get-SPOSite.md)
179183

180184
{{Manually Enter Get-SPOSite Description Here}}

0 commit comments

Comments
 (0)