question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New command: set tenant global setting

See original GitHub issue

Sets tenant global setting

command: spo tenant settings set [options]

optional options: –minCompatibilityLevel <Int> –maxCompatibilityLevel <Int> –externalServicesEnabled <Boolean> –noAccessRedirectUrl <String> –sharingCapability <SharingCapabilities> –displayStartASiteOption <Boolean> –startASiteFormUrl <String> –showEveryoneClaim <Boolean> –showAllUsersClaim <Boolean> –showEveryoneExceptExternalUsersClaim <Boolean> –searchResolveExactEmailOrUPN <Boolean> –officeClientADALDisabled <Boolean> –legacyAuthProtocolsEnabled <Boolean> –requireAcceptingAccountMatchInvitedAccount <Boolean> –provisionSharedWithEveryoneFolder <Boolean> –signInAccelerationDomain <String> –enableGuestSignInAcceleration <Boolean> –usePersistentCookiesForExplorerView <Boolean> –bccExternalSharingInvitations <Boolean> –bccExternalSharingInvitationsList <String> –userVoiceForFeedbackEnabled <Boolean> –publicCdnEnabled <Boolean> –publicCdnAllowedFileTypes <String> –requireAnonymousLinksExpireInDays <Int> –sharingAllowedDomainList <String> –sharingBlockedDomainList <String> –sharingDomainRestrictionMode <SharingDomainRestrictionModes> –oneDriveStorageQuota <Int> –oneDriveForGuestsEnabled <Boolean> –iPAddressEnforcement <Boolean> –iPAddressAllowList <String> –iPAddressWACTokenLifetime <Int> –useFindPeopleInPeoplePicker <Boolean> –defaultSharingLinkType <SharingLinkType> –oDBMembersCanShare <SharingState> –oDBAccessRequests <SharingState> –preventExternalUsersFromResharing <Boolean> –showPeoplePickerSuggestionsForGuestUsers <Boolean> –fileAnonymousLinkType <AnonymousLinkType> –folderAnonymousLinkType <AnonymousLinkType> –notifyOwnersWhenItemsReshared <Boolean> –notifyOwnersWhenInvitationsAccepted <Boolean> –notificationsInOneDriveForBusinessEnabled <Boolean> –notificationsInSharePointEnabled <Boolean> –ownerAnonymousNotification <Boolean> –commentsOnSitePagesDisabled <Boolean> –socialBarOnSitePagesDisabled <Boolean> –orphanedPersonalSitesRetentionPeriod <Int> –disallowInfectedFileDownload <Boolean> –defaultLinkPermission <SharingPermissionType> –conditionalAccessPolicy <SPOConditionalAccessPolicyType> –allowDownloadingNonWebViewableFiles <Boolean> –allowEditing <Boolean> –applyAppEnforcedRestrictionsToAdHocRecipients <Boolean> –filePickerExternalImageSearchEnabled <Boolean> –emailAttestationRequired <Boolean> –emailAttestationReAuthDays <Int> –hideDefaultThemes <Boolean>

At least on of the above should be specified to execute the command.

Usage: spo tenant settings set -u https://contoso-admin.sharepoint.com --userVoiceForFeedbackEnabled false

Similar behavior like: Set-PnPTenant

Require tenant admin access. Will not be possible with app principle authentication.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
VelinGeorgievcommented, Sep 14, 2018

Hi Waldek, Almost there, I just need to find some free time to complete it.

@waldekmastykarz

1reaction
waldekmastykarzcommented, Aug 20, 2018

To keep it consistent with other tenant-level commands, I’d suggest removing the webUrl option in favor of requiring connection to the tenant admin site. Other than that, looks good! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

New command: set tenant global setting ¡ Issue #549 - GitHub
Set -PnPTenant seems to be setting tenant properties which are global and not specific to the particular site, unless I'm mistaken? All ...
Read more >
Enable-OrganizationCustomization (ExchangePowerShell)
This cmdlet is available only in the cloud-based service. You may be prompted to run the EnableOrganizationCustomization cmdlet before you create or modify ......
Read more >
tenant settings set - CLI for Microsoft 365
To use this command you have to have permissions to access the tenant admin site. ExamplesÂś. Sets single tenant global setting. m365 spo...
Read more >
Configure global mail flow settings from the new Exchange ...
If you prefer to enable this from PowerShell, log onto Exchange Online PowerShell and run the following command. C:\> Set-OrganizationConfig - ...
Read more >
OneAgent configuration via command-line interface - Dynatrace
The oneagentctl command accepts the get parameter to check the state or value of a setting, and the set parameter to change a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found