Skip to content

Commit c603121

Browse files
authored
Create Get-SPORestrictedSiteCreation
Adding Get-SPORestrictedSiteCreation Cmdlet for Restricted Site Creation Feature.
1 parent 36f68e8 commit c603121

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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
23+
[-SiteType <RestrictedSiteCreationSiteType>]
24+
```
25+
26+
## DESCRIPTION
27+
28+
This command obtains the current configuration information for the restricted site creation feature, including whether it is enabled, the current mode, and the current policies.
29+
30+
> [!Important]
31+
>You must use version 16.0.25513 (published November 2024) or later of the [SharePoint Online Management Shell](https://www.microsoft.com/en-us/download/details.aspx?id=3558) for these commands to function properly. Earlier versions do not have the current list of site types and will not operate correctly.
32+
33+
## EXAMPLES
34+
35+
### Example 1
36+
37+
```powershell
38+
Get-SPORestrictedSiteCreation
39+
```
40+
41+
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.
42+
43+
### Example 2
44+
45+
```powershell
46+
Get-SPORestrictedSiteCreation –SiteType Communication
47+
```
48+
49+
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.
50+
51+
## PARAMETERS
52+
53+
### -SiteType
54+
When provided, only return the Microsoft Entra security groups configured for the specified site type.
55+
56+
PARAMVALUE: All | SharePoint | OneDrive | Team | Communication
57+
• All - OneDrive and all SharePoint sites
58+
• SharePoint - All SharePoint sites (but not OneDrive)
59+
• OneDrive - Only OneDrive
60+
• Team - Only SharePoint team sites (group-connected and classic)
61+
• Communication - Only SharePoint communication sites
62+
63+
```yaml
64+
Type: RestrictedSiteCreationSiteType
65+
Parameter Sets: (All)
66+
Applicable: SharePoint Online
67+
Required: False
68+
Position: Named
69+
Default value: None
70+
Accept pipeline input: False
71+
Accept wildcard characters: False
72+
```
73+
74+
## RELATED LINKS
75+
76+
[Getting started with SharePoint Online Management Shell](https://learn.microsoft.com/powershell/sharepoint/sharepoint-online/connect-sharepoint-online)
77+
78+
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).

0 commit comments

Comments
 (0)