-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Get-SPORestrictedSiteCreation #759
Merged
Merged
Changes from 3 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c603121
Create Get-SPORestrictedSiteCreation
vgaddam-pm 6995e4b
Update Get-SPORestrictedSiteCreation
vgaddam-pm 78ce8f9
Rename Get-SPORestrictedSiteCreation to Get-SPORestrictedSiteCreation.md
vgaddam-pm 6e1c7f9
Update Get-SPORestrictedSiteCreation.md
vgaddam-pm 52ee28e
Merge branch 'main' into patch-3
vgaddam-pm 00d1b83
Update Get-SPORestrictedSiteCreation.md
vgaddam-pm dd2da74
Merge branch 'main' into patch-3
vgaddam-pm 5e8a643
Update sharepoint-online.md
vgaddam-pm e798259
Merge branch 'main' into patch-3
rjagiewich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
77 changes: 77 additions & 0 deletions
77
sharepoint/sharepoint-ps/sharepoint-online/Get-SPORestrictedSiteCreation.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
--- | ||
external help file: sharepointonline.xml | ||
Module Name: Microsoft.Online.SharePoint.PowerShell | ||
online version: https://learn.microsoft.com/powershell/module/sharepoint-online/get-sporestrictedsitecreation | ||
applicable: SharePoint Online | ||
title: Get-SPORestrictedSiteCreation | ||
schema: 2.0.0 | ||
author: vgaddam-pm | ||
ms.author: vgaddam | ||
ms.reviewer: | ||
--- | ||
|
||
# Get-SPORestrictedSiteCreation | ||
|
||
## SYNOPSIS | ||
|
||
This cmdlet allows SharePoint administrators to check the current configuration of the restricted site creation feature. | ||
|
||
## SYNTAX | ||
|
||
```powershell | ||
Get-SPORestrictedSiteCreation [-SiteType <RestrictedSiteCreationSiteType>] | ||
``` | ||
|
||
## DESCRIPTION | ||
|
||
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. | ||
|
||
> [!Important] | ||
>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. | ||
|
||
## EXAMPLES | ||
|
||
### Example 1 | ||
|
||
```powershell | ||
Get-SPORestrictedSiteCreation | ||
``` | ||
|
||
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. | ||
|
||
### Example 2 | ||
|
||
```powershell | ||
Get-SPORestrictedSiteCreation –SiteType Communication | ||
``` | ||
|
||
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. | ||
|
||
## PARAMETERS | ||
|
||
### -SiteType | ||
When provided, only return the Microsoft Entra security groups configured for the specified site type. | ||
|
||
PARAMVALUE: All | SharePoint | OneDrive | Team | Communication | ||
• All - OneDrive and all SharePoint sites | ||
• SharePoint - All SharePoint sites (but not OneDrive) | ||
• OneDrive - Only OneDrive | ||
• Team - Only SharePoint team sites (group-connected and classic) | ||
• Communication - Only SharePoint communication sites | ||
|
||
```yaml | ||
Type: RestrictedSiteCreationSiteType | ||
Parameter Sets: (All) | ||
Applicable: SharePoint Online | ||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
|
||
## RELATED LINKS | ||
|
||
[Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online) | ||
|
||
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). |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this link is incorrect -- it doesnt resolve #Closed