Skip to main content

Agents Users Build

An agent a user builds answers with the access of the person asking and adds none. What it can still do is draw on more than its builder intended, run code in Microsoft's sandbox, and, where sharing exists, reach other people. This chapter covers what an agent is, the builder's choices against the administrator's controls, the settings to close, the scenario to design for, the tests that prove each control, and what the controls do not cover.

What an agent is​

Users build agents in Agent Builder, the New agent entry in Copilot Chat (Agent Builder). An Agent Builder agent is a saved set of instructions and knowledge sources. Copilot runs it with the access of the person using it, and only while that person is signed in. An agent therefore carries the same exposure as its user's Copilot Chat, under the same controls: the three DLP gates, sensitivity labels, the web grounding policy, and audit apply to agents unchanged.

Three documented properties bound the exposure (governance principles):

  1. No new access. An agent surfaces nothing the person asking could not already get from Copilot Chat. Permissions, labels, and the EXTRACT usage right hold per file.
  2. No reach into other systems. Agent Builder offers no actions. An agent can run code, in a sandbox Microsoft documents as closed to the network.
  3. Sharing passes through the administrator. Publishing an agent to the organization needs an administrator's approval in every cloud. Direct sharing to named people exists in Commercial, and the tenant's Sharing setting governs only organization-wide sharing. In GCC High sharing does not exist at all, so only an administrator can give an agent to other people.

What remains is to decide who may build, close a few settings, and manage one exposure that access control does not stop: an agent that draws on a broader source than its builder intended.

The builder's choices and the administrator's controls​

DecisionThe builder setsThe administrator controls
Who may buildNo settingUser access, granted to designated users or groups
What the agent readsThe knowledge sources, and how narrowly each is scopedPermissions and labels on the content, the Copilot DLP policy, and which connectors exist
Whether it searches the webThe Web content toggleAllow web search in Copilot, which overrides the toggle
Whether it runs codeCreate documents, charts, and codeNo switch is documented; Microsoft operates the sandbox
Who else may use itA share to named people where sharing exists, or a request to publishThe Sharing setting, and approval of each publish request
What happens when the builder leavesNo settingAgent management rules

The scenario to design for​

The exposure access control cannot stop is an agent that draws on more than its builder intended. An HR employee builds a benefits agent on the HR site. Asked how to enroll in the retirement plan, it answers well. Asked whether layoffs are coming, it describes a reduction in force planned for the next month: the plan sits in the same site, and the person asking is allowed to open it. No permission was exceeded, so no access control fires. Two controls stop it: a label on the plan that the reading gate blocks, and knowledge scoped to named files and folders.

Prompt injection takes a different route with agents, and Chapter 13 covers it. The short form: an agent reads whatever lands in its knowledge sources, so an attacker can plant instructions in an email or a document instead of the prompt, and what you control is how far an injected instruction can reach.

Configuration​

Every setting below lives in the Microsoft 365 admin center under Agents (agent settings).

Who may build​

  • Agents > Settings > User access: select Specific users or groups and name the group of designated builders. The default is All users. The same setting decides who can use any agent, so it also limits the audience for a published one.
  • Agents > Settings > Agent and plugin access: keep Allow agents and plugins built by Microsoft and Allow agents and plugins built by your organization; clear Allow agents and plugins built by external publishers. Plugins here include tools, MCP servers, connectors, and skills that extend agents.

Sharing and publishing​

  • Publishing. A builder requests publication with Submit to your org catalog (submit to the org catalog). The request lands under Agents > All agents > Requests, where an administrator reviews the agent's description, owner, knowledge sources, and capabilities and selects Publish to store or Reject submission; the publishing wizard scopes the audience to selected users or groups (agent requests). A later change to a published agent arrives as Pending update and needs a new approval; users keep the previous version until then. Name the approver and write the checklist: at minimum, read every knowledge source and ask whether the audience should see everything beneath it.
  • Sharing. Agents > Settings > Sharing offers All users, Specific users, and No users, for Agent Builder agents only. The setting governs organization-wide sharing only: at No users, Microsoft states, users "can still share directly with specific individuals." Changes apply to new sharing actions only. Set No users unless a business reason exists for organization-wide shares, and treat direct shares as the exposure the approver's review does not cover.

Lifecycle rules​

Under Agents > Settings > Agent management rules, run Reassign ownerless agents created with Agent Builder to manager and create a rule that blocks ownerless agents without usage. A third rule rejects publish requests older than a chosen number of days, which keeps the Requests queue honest. Review the Agents without owners card under All agents monthly (agent registry).

Knowledge governance​

Nothing new to configure; these are the controls to confirm.

  • Knowledge a builder can add: SharePoint, OneDrive, Teams chats and meetings, Outlook email, people data, public websites, uploaded files, and Copilot connectors an administrator has enabled (knowledge sources). Decide which connectors, if any, agents may draw on.
  • The Copilot DLP policy applies (Chapter 7): the label rule stops an agent summarizing a labeled file (a citation may remain), and the web-search rule blocks the query when the prompt carries a blocked sensitive information type (Copilot and agents).
  • The Cloud Policy setting Allow web search in Copilot (Chapter 8) overrides the agent's Web content toggle, which stays clickable; Microsoft documents this as a known limitation (known limitations).
  • With Restricted SharePoint Search enabled, SharePoint cannot be a knowledge source. Whether Restricted Content Discovery sites are excluded from agent knowledge is undocumented (tenant check 7).
  • Every agent carries code interpreter, which the builder sees as Create documents, charts, and code (capabilities). It writes and runs Python on files the user uploads or Copilot retrieves. Microsoft documents a new virtual machine for each session, destroyed afterward, with no inbound or outbound network traffic (code interpreter security).

Knowledge scope​

An agent searches everything beneath the location its builder names. Microsoft's advice on narrowing sources concerns answer quality, so the security guidance is yours to issue to builders.

  • Builders name files and folders. A site address covers every subpath beneath it. My emails covers the whole mailbox and cannot be narrowed; My Teams chats and meetings covers every transcript unless the builder picks specific chats and meetings.
  • Sensitive files carry a label the Copilot DLP rule blocks. No agent then summarizes them for anyone, the builder included.
  • Approvers read an agent's knowledge sources before publishing it.

Audit​

Agent interactions write CopilotInteraction records with AgentId, AgentName, AgentVersion, and AppHost alongside the fields Copilot Chat already writes (audit Copilot). Group the monitoring query from Chapter 14 and the DSPM for AI activity explorer view by AgentId. The Insider Risk Management Risky AI usage policy covers agents as Copilot experiences (Chapter 16).

Validating the controls​

Prerequisites: a test account with a Microsoft 365 Copilot license and Agent Builder access; the Copilot DLP policy and the web grounding policy in place; a SharePoint site the account cannot read; a labeled file whose label the DLP rule blocks; and a site the account can read that holds routine documents and one unlabeled file standing in for a sensitive plan.

  1. No new privileges. Create an agent with the inaccessible site as knowledge and ask for its contents. Expected: nothing from that site.
  2. Reading gate. Ground an agent on a site that holds the blocked-label file and ask for a summary. Expected: a citation without content, as in the reading-gate test of Chapter 7.
  3. Egress gate. Turn on Web content and prompt the agent with a sensitive information type the egress rule blocks and a question that needs the web. Expected: web search suppressed, and the reasoning summary reporting that the web search tool is not providing results, as in the egress-gate test of Chapter 7.
  4. Attribution. After tests 1 to 3, search the audit log for CopilotInteraction records carrying the agent's AgentId. Expected: every prompt attributed to the agent.
  5. Boundaries. Record what the builder offers, a Share option, an Actions section, or neither, and confirm that the User access and Sharing settings are present in the admin center. In GCC High the documented state is no Share option and no Actions.
  6. Broad source. Ground an agent on the site that holds the routine documents and the stand-in plan. Ask a question only the plan answers; expected: the agent answers from the plan, which is the exposure. Apply the blocked label to the plan and ask again; expected: a citation without content. Remove the label, rebuild the agent on the routine documents by name, and ask again; expected: nothing from the plan.
  7. Prompt injection. The document and email tests in Chapter 13.

What the controls do not cover​

  1. Direct shares. Where sharing exists, SharePoint knowledge stays permission-trimmed per recipient, but embedded files go to everyone who has the agent, Information Barriers are not enforced on them, and re-sharing after an edit re-shares the files (share and manage agents). The Sharing setting does not stop direct shares to named people.
  2. General AI knowledge cannot be blocked. Only use specified sources makes the agent prefer its sources; Microsoft states that Agent Builder cannot fully block general knowledge. Copilot Studio can (Chapter 11).
  3. Embedded files. The highest embedded-file label decides who can install the agent through the EXTRACT right, and a file with user-defined permissions or extract disabled fails agent creation silently. The Data source filter under All agents, value Embedded knowledge, lists the agents that carry such files, with each file's name and sensitivity label.
  4. Code interpreter has no administrator switch. Microsoft documents none at the tenant, group, or agent level, so the sandbox's isolation is Microsoft's to maintain; Chapter 13 covers the published escapes. The reading gate stops Copilot ingesting a labeled file, but an unlabeled file a user uploads is processed in the sandbox.
  5. Network. Agent Builder needs *.api.powerplatform.com in the commercial documentation; the sovereign endpoint is undocumented. Confirm on the proxy before a pilot.
  6. People data is on by default per agent. It exposes directory profile data the user can already see; the builder can turn it off.
  7. Unlabeled sensitive files still inform answers. The reading gate acts on labels, so for a sensitive file without a blocked label, narrow knowledge scope and the approver's review are the only mitigations. Chapter 7 records the same gap for Copilot Chat.

In GCC High​

Microsoft's Copilot service description limits GCC High to two kinds of agent: those built in Agent Builder and those an administrator publishes (feature availability). Four things differ from Commercial (regional availability):

  • The administrator must grant User access before Agent Builder appears; in Commercial the default is All users.
  • Sharing with others is not available, so a builder's agent reaches other people only through a publish request and an administrator's approval. Until then, the only person who can run it is the builder. The direct-share exposure in the limitations above does not exist, and the Sharing setting has nothing to govern.
  • SharePoint agents and the image generator are not available; embedded files are unsupported in GCC and undocumented for GCC High.
  • Code interpreter needs a Microsoft 365 Copilot license, and Copilot connectors are off by default in government clouds.

Every row below is a documented claim until a tenant check turns it into an observation. The basis column says which, and when.

ControlGCC HighBasis
Agent Builder (New agent in Copilot Chat)Different
Available; the administrator must grant User access first.
Documented 2026-10-05
Sharing an agent with other usersNot availableDocumented 2026-10-05 ("Sharing agents with others isn't available in Agent Builder in GCCH environments.")
Publishing an agent to the organization (administrator approval)AvailableDocumented 2026-10-05
Embedded files as agent knowledgeUndocumentedDocumented 2026-10-05 (the page names GCC only)
Code interpreter in Agent Builder agentsDifferent
Available to users with a Microsoft 365 Copilot license.
Documented 2026-10-05
Image generator in Agent Builder agentsNot availableDocumented 2026-10-05
SharePoint agentsNot availableDocumented 2026-10-08 (Not currently available)
Copilot connectors as agent knowledgeDifferent
External connections and partner connectors are not enabled by default.
Documented 2026-10-08 (footnote 9)
#Where to lookMicrosoft documentsIf the tenant disagrees
1Copilot Chat, as a user granted Agent Builder access: the New agent entry, and inside the builder any Share option or Actions sectionAgent Builder present; sharing "isn't available" in GCC High; no actions in Agent Builder in any cloudShare present: the sharing controls move from the watch list into configuration. Actions present: a connector review.
3A SharePoint site (GCC High): an agents entry in the site or library command barSharePoint agents "Not currently available" in GCC HighA second user build path exists; add it to the user-access requirement and to audit.
6Agent Builder Configure tab: an upload option for embedded filesUnsupported in GCC; silent on GCC HighThe embedded-file rules apply: the highest label gates installation through the EXTRACT right; add them to the reading-gate test.
7An agent grounded on a Restricted Content Discovery site: whether that site's files appear in responsesSilentIf they appear, Restricted Content Discovery does not protect agent knowledge.
9An Agent Builder agent's Configure tab: the Create documents, charts, and code setting, and whether it can be turned off. Then ask the agent to chart a short list of numbersCode interpreter is always enabled in Agent Builder; in GCC High it needs a Microsoft 365 Copilot licenseIf the agent runs code, the sandbox limits apply. If the builder can turn the setting off, add that to the builder guidance.

📩 Don't Miss the Next Solution

Join the list to see the real-time solutions I'm delivering to my GCC High clients.