Cookies on this site

We would like to use cookies to understand how the site is used and to measure our campaigns. Nothing is set until you choose, and you can change your mind at any time from “Cookie settings” at the foot of every page. Privacy policy

Contact UsContact Us

Resources / Blogs

AI & agents

How to secure enterprise AI agents

Learn how to secure enterprise AI agents with the Gate and the Door security model and Zero Trust principles.

· · 2 min read

Identity Permissions Are the Gate

Before protecting documents, determine which identity the AI agent uses. An agent may operate through:

  • ✓A user’s delegated account
  • ✓A managed identity
  • ✓An Entra agent identity
  • ✓An application registration
  • ✓A platform-managed knowledge connector

This distinction matters. An agent using a developer’s account may inherit that person’s permissions, while a dedicated application identity can be restricted independently.

For SharePoint AI agents, Microsoft Graph’s Sites.Selected permission provides an important least-privilege control. It allows administrators to grant an application access to specific SharePoint sites rather than the entire tenant.

Sites.Selected requires two steps:

  • ✓Add and approve the Microsoft Graph API permission.
  • ✓Grant the application access to each required SharePoint site.

If either step is missed, the agent may fail—or gain broader access through another identity path.

If you cannot identify the agent at the gate, you cannot reliably control what it accesses.

Sensitivity Labels and DLP Are the Door

Access to a SharePoint site does not mean an agent should be able to read every document within it.

Microsoft Purview sensitivity labels can classify and protect individual files. For example:

  • ✓Agent-readable: Approved for processing by enterprise AI agents
  • ✓Agent-restricted: Must not be read or summarized by an AI agent

A label alone provides classification, not enforcement. To function as a true security control, it must apply protection such as encryption, authorized identities, or appropriate usage rights.

Microsoft Purview Data Loss Prevention (DLP) adds another layer. It can detect sensitive or labeled content, restrict actions, display policy notifications, and generate security incidents.

The gate limits where an agent can go. The door protects sensitive information after it arrives.

Audit Logs Are the Security Camera

An agent responding, “I can’t access that file,” does not prove that a security policy worked.

The failure could result from:

  • ✓Missing permissions
  • ✓Incomplete indexing
  • ✓Expired credentials
  • ✓DLP enforcement
  • ✓Sensitivity-label encryption
  • ✓A platform configuration problem

Microsoft Purview Audit, Activity Explorer, Entra logs, and DLP incident reports can reveal which identity attempted access and which control responded.

Enable auditing before testing AI-agent security. Without audit evidence, an access failure is only an observation—not proof that protection was enforced.

Test the Complete Security Model

A practical test compares two agents:

  • ✓One with explicit Sites.Selected access
  • ✓One using a Copilot Studio SharePoint knowledge source

Ask both agents the same questions about an agent-readable document and an agent-restricted document.

Then review the audit records to identify which identity each agent used and whether the restriction was genuinely enforced.

This step is especially important because a knowledge connector may use an access path different from the agent identity shown in Copilot Studio.

Final Takeaway

Securing enterprise AI agents requires more than adding a permission or creating a DLP policy. A complete model needs all three layers:

  • ✓The gate: Identity and least-privilege access
  • ✓The door: Sensitivity labels and DLP protection
  • ✓The security camera: Audit and activity records

When these controls work together, organizations can adopt AI agents without giving them unrestricted access to enterprise information.

Before trusting an AI agent with your data, verify its identity, restrict its access, protect the content, and audit the outcome.

← All articles

Case studies

AI Consulting in practice

Client names are withheld. We are happy to share details on a call.

All case studies
  • In production

    Hours → minutes

    Food manufacturing

    AI Consulting

    Document intake agent for a national food cooperative

    A Copilot Studio agent reads certificates of analysis as they arrive in the quality team's inbox, extracts 14 fields with AI Builder, checks them, files the PDF in SharePoint and posts a summary in Teams. Fields it is unsure about go to a person instead of being guessed.

    • Hours of daily filing down to minutes
    • 14 fields per document, validated
  • Internal project

    2,000 → 50 a day

    Public-sector sales

    AI Consulting

    Procurement triage on a local 30B model

    Logs in to five government procurement portals each morning, reads about 2,000 listings, parses the bid documents and emails a short list of the 20 to 50 worth quoting. Every model call runs on one desktop AI system in our office.

    • 2,000 listings down to about 50 a day
    • 11× faster than a 120B model, same verdicts
  • Internal project

    Cited answers

    Food & beverage compliance

    AI Consulting

    FDA regulatory research agent built on Claude

    Food and beverage teams spend hours each week checking FDA sites for regulatory changes. This agent ingests FDA guidance, approval letters and labeling requirements, answers questions with citations to the source passage, compares documents and drafts summaries for review. Built on Claude Sonnet.

    • Every answer cites its source
    • Submission summaries drafted for review

Keep reading

All AI & agents articles

Want an agent like this working on your own data?

Book a 30-minute AI readiness call. We will look at one workflow and tell you what is automatable, what is not, and what the data needs first.