Security
Security best practices for Business Central development: the layered security model (authentication, authorization, encryption, auditing, change logging) and the use of Azure Key Vaults to store extension secrets. Answers questions about protecting installations and handling secrets in online and on-premises deployments.
Path: Development > Rules, guidelines, and best practices > Best practices > Security · tier official · system development · narrative reviewed (checked by Opus)
Overview
This section has two pages. The first describes the layered security model in Business Central. It covers how users sign in, how permissions are administered, how data is encrypted, and how auditing and change logging help monitor sensitive fields. It also touches on secure development practices and applies to both online and on-premises deployments.
The second page is about Azure Key Vaults. Extensions that call external services with authentication need a safe place for their secrets. A key vault gives centralized, secure storage, and extensions can read secrets from it. The page covers app key vault setup for online and on-premises deployments, secret retrieval, and telemetry for security monitoring.
Start with the layered security model page for the overall picture. Then read the Azure Key Vaults page when you build or maintain an extension that calls external web services and needs credentials.
Key points
- Security is layered: authentication, authorization, data encryption, auditing, and change logging.
- Authentication includes multifactor authentication for user sign-in.
- User permissions are administered as part of the authorization layer.
- The change log and audit trails support monitoring of sensitive fields.
- Azure Key Vaults give extensions centralized, secure storage for secrets used in authenticated web service calls.
- App key vault setup is described separately for online and on-premises deployments.
- Extensions can retrieve secrets from the key vault in both online and on-premises deployments.
- App key vault telemetry supports security monitoring.
Learn pages
- Azure Key Vaults with Business Central: Learn how Business Central extensions use Azure Key Vault to securely retrieve secrets in online and on-premises environments.
- Layered security model in Business Central: Helps you understand and improve the security of your Business Central application regardless of where it’s hosted.
Videos, posts and code changes
Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.
- #10346 Fix activity log indirect permissions (code change): “All activity writes remain code-mediated through Expense Activity Log Mgt”
- #11016 [AI Business Solutions] Enforce allow-listed Redirect URIs, token audiences and authorities for OAuth2 integrations (code change): “Hardens OAuth2 integrations: Intercompany now builds the authority from the tenant GUID over HTTPS”
- #12617 [Security] Move URL checks from Web Request Helper to System Application Uri module (code change): “Move URL checks from Web Request Helper to System Application Uri module”
- #8556 [Quality Management] Enforce rules and restrictions with indirect and implicit permissions (code change): “Quality Management uses InherentPermissions so that, when no setup or triggered generation”
- #157 18 more AL/BC patterns: data-modeling, testing, style, security, error-handling, ui, upgrade, web-services, appsource (code change): “Security, error handling, UI, upgrade, web services and AppSource guidance on permission sets”
- #187 Code reviewer skill for recognizing and validating unauthenticated responses (code change): “Helps enforce security best practices in extension code”
- #49 Promote security knowledge from community to Microsoft layer (code change): “Best practice guidance improved for temporary table data protection”
- #99 Add lifecycle error and privacy knowledge (code change): “ErrorInfo privacy exposure, and FeatureTelemetry logging, plus related review skills”
- Business Central 2025 wave 1 (BC26.1): New method to add SecretText values to JSON objects – WriteWithSecretsTo (community post): “protect sensitive values from exposure”
- Business Central 2025 wave 2 (BC27): ‘Concealed’ text field type for sensitive data (New field-level property: MaskType) (community post): “conceal sensitive text field values by default with a toggle”
Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.