---
id: post/demiliani-com/17568
type: post
title: "Giving an AI agent the keys to Business Central: practical security tips."
summary: Securing AI agents that act on data in Business Central requires deliberate choices about identity, permissions, validation and oversight. The post provides a framework for deploying agents safely using existing tools like MFA, least privilege and change control, ensuring accountability stays with people rather than the agent.
tier: community
language: en
tags:
  - security
  - ai agents
  - permissions
  - access control
  - audit
  - least privilege
  - prompt injection
  - approval workflows
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-11-05T00:52:45.570Z"
  flags: []
generated:
  at: "2026-11-05T00:14:20.359Z"
  pipeline: 0.2.0
  prompts:
    extract-post: 1
  input_hash: bde687bcd4bc86acc65b4a181c2ad841e22597377beec813ce0d7199258a8161
evidence:
  - kind: blog
    url: https://demiliani.com/2026/11/04/giving-an-ai-agent-the-keys-to-business-central-practical-security-tips/
    title: "Giving an AI agent the keys to Business Central: practical security tips."
    date: "2026-11-04"
    commit: null
    t: null
    quote: null
  - kind: blog
    url: https://demiliani.com/2026/11/04/giving-an-ai-agent-the-keys-to-business-central-practical-security-tips/
    title: "Giving an AI agent the keys to Business Central: practical security tips."
    date: "2026-11-04"
    commit: null
    t: null
    quote: The agent can do the work, but accountability stays with people.
  - kind: blog
    url: https://demiliani.com/2026/11/04/giving-an-ai-agent-the-keys-to-business-central-practical-security-tips/
    title: "Giving an AI agent the keys to Business Central: practical security tips."
    date: "2026-11-04"
    commit: null
    t: null
    quote: Permitted, plausible and wrong is the failure mode to design against.
  - kind: blog
    url: https://demiliani.com/2026/11/04/giving-an-ai-agent-the-keys-to-business-central-practical-security-tips/
    title: "Giving an AI agent the keys to Business Central: practical security tips."
    date: "2026-11-04"
    commit: null
    t: null
    quote: These checks are boring, testable and impossible to sweet-talk, which is exactly what you want from a control.
links:
  learn: []
  objects:
    - object/page/9852
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/ui-define-granular-permissions
      title: Define granular permissions
      label: possibly related
      why: names Page 9852 "Effective Permissions"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/deployment/licensing
      title: Licensing in Business Central
      label: possibly related
      why: names Page 9852 "Effective Permissions"
      by: code
post_id: "17568"
source_id: demiliani-com
source_name: Stefano Demiliani
url: https://demiliani.com/2026/11/04/giving-an-ai-agent-the-keys-to-business-central-practical-security-tips/
published_at: "2026-11-04T11:33:12.000Z"
author: Stefano Demiliani
full_text: false
words: 1626
quotes:
  - text: The agent can do the work, but accountability stays with people.
    why_it_matters: "Summarizes the core principle: agents execute but humans remain responsible, preventing delegation of accountability"
  - text: Permitted, plausible and wrong is the failure mode to design against.
    why_it_matters: Highlights that technical permissions alone cannot prevent incorrect decisions; additional controls and human judgment are required
  - text: These checks are boring, testable and impossible to sweet-talk, which is exactly what you want from a control.
    why_it_matters: Emphasizes that deterministic validation rules are more reliable than trusting the agent's judgment to follow instructions
code_objects_mentioned:
  - page Effective Permissions
  - page Microsoft Entra Applications
systems:
  - integration
  - administration
  - development
versions_mentioned: []
preview:
  embeddable: true
  frame_url: https://demiliani.com/2026/11/04/giving-an-ai-agent-the-keys-to-business-central-practical-security-tips/embed/
  image: https://i0.wp.com/demiliani.com/wp-content/uploads/2026/11/agentsecurity_00.png?fit=1200%2C630&ssl=1
  image_alt: null
  image_w: 1200
  image_h: 630
  site_name: Stefano Demiliani
  favicon: https://demiliani.com/wp-content/uploads/2022/09/sd_wordpress_logo.png?w=32
  probed_at: "2026-11-05T00:48:33.988Z"
---

# Giving an AI agent the keys to Business Central: practical security tips.

[Read the post](https://demiliani.com/2026/11/04/giving-an-ai-agent-the-keys-to-business-central-practical-security-tips/) · Stefano Demiliani (Stefano Demiliani, MVP) · 2026-11-04 · 1626 words · tier community · reviewed (checked by Opus)

> Securing AI agents that act on data in Business Central requires deliberate choices about identity, permissions, validation and oversight. The post provides a framework for deploying agents safely using existing tools like MFA, least privilege and change control, ensuring accountability stays with people rather than the agent.

## Key points

- AI agents need their own application identity with narrow permissions built from the task backwards, not shared logins or broad service accounts
- Treat all data the agent reads (PDFs, emails, fields) as untrusted input vulnerable to prompt injection and validate it with deterministic code before acting
- Require human approval with full evidence (source documents, matched orders, rule violations, agent identity) and enforce posting rights so only humans can finalize records
- Plan for failure before go-live: rehearse disabling the agent, audit trails to trace what it did, and point-in-time restore capability to repair damage
- AI-generated code in development must follow normal engineering gates (branch policies, analyzers, human review) and avoid closed-loop approval by multiple AI systems

## Quotes

- "The agent can do the work, but accountability stays with people." (Summarizes the core principle: agents execute but humans remain responsible, preventing delegation of accountability)
- "Permitted, plausible and wrong is the failure mode to design against." (Highlights that technical permissions alone cannot prevent incorrect decisions; additional controls and human judgment are required)
- "These checks are boring, testable and impossible to sweet-talk, which is exactly what you want from a control." (Emphasizes that deterministic validation rules are more reliable than trusting the agent's judgment to follow instructions)

## AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

- [page 9852 "Effective Permissions"](../../objects/page/9852.md)
- page "Microsoft Entra Applications"

Not found in BC28-30: page "Microsoft Entra Applications".

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Define granular permissions](https://learn.microsoft.com/dynamics365/business-central/ui-define-granular-permissions) — possibly related: names Page 9852 "Effective Permissions"
- [Licensing in Business Central](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/deployment/licensing) — possibly related: names Page 9852 "Effective Permissions"

## Context

- Features: AI agents and copilots, Permission sets and role-based access control, Application identities and service principals, Audit logs and change tracking, Multi-factor authentication, Point-in-time restore, Application Insights telemetry, Approval workflows

Source: Stefano Demiliani, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.
