Export (0) Print
Expand All

Set-SPOTenant

 

Applies to: SharePoint Online, Office 365

Topic Last Modified: 2014-04-21

Sets properties on the SharePoint Online organization.

Set-SPOTenant [-DisplayStartASiteOption <$true | $false>] [-ExternalServicesEnabled <$true | $false>] [-MaxCompatibilityLevel <Int32>] [-MinCompatibilityLevel <Int32>] [-NoAccessRedirectUrl <String>] [-SharingCapability <Disabled | ExternalUserSharingOnly | ExternalUserAndGuestSharing>] [-StartASiteFormUrl <String>]

--------EXAMPLE --------

Set-SPOSite -Identity https://contoso.sharepoint.com/sites/team1 -LockState NoAccess
Set-SPOTenant -NoAcessRedirectUrl 'http://www.contoso.com'

This example blocks access to https://contoso.sharepoint.com/sites/team1 and redirects traffic to http://www.contoso.com.

You can use the Set-SPOTenant cmdlet to enable external services and to specify the versions in which site collections can be created. You can also use the Set-SPOSite cmdlet together with the Set-SPOTenant cmdlet to block access to a site in your organization and redirect traffic to another site.

You must be a SharePoint Online global administrator to run the cmdlet.

 

Parameter Required Type Description

DisplayStartASiteOption

Optional

System.Boolean

Determines whether tenant users see the Start a Site menu option.

ExternalServicesEnabled

Optional

System.Boolean

Enables external services for a tenant. External services are defined as services that are not in the Office 365 datacenters.

MaxCompatibilityLevel

Optional

System.Int32

Specifies the upper bound on the compatibility level for new sites.

MinCompatibilityLevel

Optional

System.Int32

Specifies the lower bound on the compatibility level for new sites.

NoAccessRedirectUrl

Optional

System.String

Specifies the URL of the redirected site for those site collections which have the locked state "NoAccess."

SharingCapability

Optional

Microsoft.Online.SharePoint.TenantManagement.SharingCapabilities

Determines what level of sharing is available for the site. The possible values are: Disabled – external user sharing (share by email) and guest link sharing are both disabled, ExternalUserSharingOnly – external user sharing (share by email) is enabled, but guest link sharing is disabled, or ExternalUserAndGuestSharing - external user sharing (share by email) and guest link sharing are both enabled.

For more information about sharing, see . Manage external sharing for your SharePoint online environment.

StartASiteFormUrl

Optional

System.String

Specifies URL of the form to load in the Start a Site dialog.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft