Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
Related resources
Articles
- Make your SharePoint client-side web part configurable
- Simplify adding web parts with preconfigured entries
- Validate web part property values
- Integrate web part properties with SharePoint
- Build custom controls for the property pane
Videos
- PnP Shorts - Optimizing validation of client-side web part configuration
- PnP Webcast - Integrate Client-Side web part Properties with SharePoint
- PnP Webcast - Custom Property Pane Controls with SharePoint Framework
- PnP Webcast - Validating SharePoint Framework client-side web part property values
- PnP Shorts - Correctly handling numeric web part properties
Samples
- Angular client-side web part (passing web part configuration to Angular and reacting to configuration changes)
- Weather SharePoint Framework Field Customizer
- Announcements SharePoint Framework Application Customizer
- Conditional formatting SharePoint Framework Field Customizer
- Directions SharePoint Framework ListView Command Set
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.