Export (0) Print
Expand All

Set-SPOTenant

 

Applies to: Office 365, SharePoint Online

Topic Last Modified: 2015-06-18

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.

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

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.

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:
© 2015 Microsoft