Export (0) Print
Expand All

Set-SPOTenant

 

Applies to: Office 365, SharePoint Online

Topic Last Modified: 2015-07-01

Sets properties on the SharePoint Online organization.

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

--------EXAMPLE 1 --------

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.

--------EXAMPLE 2 --------

Set-SPOTenant -ShowEveryoneExceptExternalUsersClaim $false 

This example hides the "Everyone Except External Users" claim in People Picker.

--------EXAMPLE 3 --------

Set-SPOTenant -ShowAllUsersClaim $false 

This example hides the "All Users" claim group in People Picker.

--------EXAMPLE 4 --------

Set-SPOTenant -UsePersistentCookiesForExplorerView $true 

This example enables the use of special persisted cookie for Open with Explorer.

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."

ProvisionSharedWithEveryoneFolder

Optional

System.Boolean

Creates a Shared with Everyone folder in every user’s new OneDrive for Business document library.

The default value is True which mean the folder is created.

A value of False means no folder is created when the site and OneDrive for Business document library is created.

NoteNote:
The default behavior of the Shared with Everyone folder is changing in August 2015. For additional information about the change, see Provision the Shared with Everyone folder in OneDrive for Business

RequireAcceptingAccountMatchInvitedAccount

Optional

System.Boolean

Ensures that an external user can only accept an external sharing invitation with an account matching the invited email address.

The parameter accepts two values: True or False.

True-User must accept this invitation with bob@contoso.com.

False- When a document is shared with an external user, bob@contoso.com, it can be accepted by any user with access to the invitation link in the original e-mail.

Administrators who desire increased control over external collaborators should consider enabling this feature.

NoteNote:
This only applies to new external users accepting new sharing invitations.
The resource owner must share with an organizational or Microsoft account or the external user will be unable to access the resource.

SearchResolveExactEmailOrUPN

Optional

System.Boolean

Removes the search capability from People Picker.

The valid values are:

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.

ShowAllUsersClaim

Optional

System.Boolean

Enables the administrator to hide the All Users claim groups in People Picker. When users share an item with “All Users (x)”, it is accessible to all organization members in the tenant’s Azure Active Directory who have authenticated with variable. For example, “All Users (x)” shares with users who have used NTLM to authentication with SharePoint.

The valid values are:

  • True- The All Users claim groups are displayed in People Picker.

  • False- The All Users claim groups are hidden in People Picker.

The default value is True.

NoteNote:
All Users (authenticated) is equivalent to the Everyone claim.

ShowEveryoneClaim

Optional

System.Boolean

Enables the administrator to hide the Everyone claim in the People Picker. When users share an item with Everyone, it is accessible to all authenticated users in the tenant’s Azure Active Directory, including any active external users who have previously accepted invitations.

The valid values are:

  • True- The Everyone claim group is displayed in People Picker.

  • False- The Everyone claim group is hidden in People Picker.

    NoteNote:
    Some SharePoint system resources such as templates and pages are required by be shared to Everyone, and this type of sharing does not expose any user data or metadata.

The default value is True.

ShowEveryoneExceptExternalUsersClaim

Optional

System.Boolean

Enables the administrator to hide the "Everyone except external users" claim in the People Picker. When users share an item with “Everyone except external users”, it is accessible to all organization members in the tenant’s Azure Active Directory, but not to any users who have previously accepted invitations.

The valid values are:

True - The Everyone except external users is displayed in People Picker.

False - The Everyone except external users claim is not visible in People Picker .

The default value is True.

SignInAccelerationDomain

Optional

System.String

Specifies home realm discovery value to be sent to Azure Active Directory (AAD) during the user sign-in process.

When the organization uses a third-party identity provider, this prevents the user from seeing the Azure Active Directory Home Realm Discovery web page and ensures the user only sees their company’s Identity Provider’s portal. This value can also be used with Azure Active Directory Premium to customize the Azure Active Directory login page.

NoteNote:
Acceleration will not occur on site collections that are shared externally.
This value should be configured with the login domain that is used by your company (that is, example@contoso.com).
If your company has multiple third-party identity providers, configuring the sign-in acceleration value will break sign-in for your organization.

StartASiteFormUrl

Optional

System.String

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

UsePersistentCookiesForExplorerView

Optional

System.Boolean

Lets SharePoint issue a special cookie that will allow this feature to work even when “Keep Me Signed In” is not selected.

“Open with Explorer” requires persisted cookies to operate correctly. When the user does not select “Keep Me Signed in” at the time of sign-in, “Open with Explorer” will fail.

WarningWarning:
This special cookie expires after 30 minutes and cannot be cleared by closing the browser or signing out of SharePoint Online. To clear this cookie, the user must log out of their Windows session.

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