Edit

Share via


Get-SPORestrictedSiteCreation

This cmdlet allows SharePoint administrators to check the current configuration of the restricted site creation feature.

Syntax

Default (Default)

Get-SPORestrictedSiteCreation
    [-SiteType <RestrictedSiteCreationSiteType>]
    [<CommonParameters>]

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.12000 (published November 2024) or later of the SharePoint Online Management Shell 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

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

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

Applicable: SharePoint Online 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

Parameter properties

Type:Microsoft.SharePoint.Administration.SPOnlineProvisioning.RestrictedSiteCreationSiteType
Default value:None
Accepted values:All, SharePoint, OneDrive, Team, Communication
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object