Edit

Custom configurations

Summary

Allowing the different aspects of a SharePoint solution to be configurable makes them more versatile. Using its configuration, you can control how the solution is working, without having to change its code and redeploy it to your tenant. SharePoint offers you a number of different way to store and handle solution configuration properties. You can choose the location where to store your configuration settings, depending on who is supposed to manage them.

High-level guideline/general rules

  • Don't store secrets, such as credentials, in SharePoint as different users might be able to access them.
  • Don't assume the integrity of the configuration values as they could be modified by users and other applications.
  • Choose the storage for your configuration settings, based on the target audience who will be managing them.

Tenant properties

Applies to: Office 365

Tenant properties allow tenant administrators to add properties in the App Catalog that can be read by various SharePoint Framework components. The tenant properties are managed by tenant administrators by using the Microsoft SharePoint Online Management Shell, which is a PowerShell module to manage your SharePoint Online subscription in Office 365 or using the CLI for Microsoft 365.

Articles

Videos

Property bags

Applies to: Office 365 | SharePoint Server

Description. Can't edit if no script enabled.

Articles

Videos

Samples

SharePoint Framework

Applies to: Office 365 | SharePoint Server

Articles

Videos

Samples

SharePoint add-ins

Applies to: Office 365 | SharePoint Server

Description.

Articles

Videos

Samples

Farm solutions

Applies to: Office 365 | SharePoint Server

Description. Can't edit if no script enabled.

Articles

Videos

Samples