Dynamics Chronicles
Search

Copilot Studio: govern agents that run on maker credentials

Published
Author
Lloyd Sebag
Type
Chronicle
Small robots each carry a copy of one glowing golden key toward a gate guarded by a translucent shield.

A Copilot Studio agent that calls a connector with its maker's credentials gives every person it is shared with the maker's access to that service. Microsoft has added an environment setting that detects these agents and, if you want, stops them from being shared or published. This article explains what the setting checks, how it differs from the older control on maker-provided credentials, and how to switch it on without breaking agents your users rely on.

The problem: one maker's access, many users

When a maker adds a tool to an agent (a connector action, a Power Automate flow, a connected agent), the connection behind it has to authenticate somewhere. Copilot Studio offers two options for tools, described in Configure user authentication for tools:

  • User authentication: each person who talks to the agent signs in to the service with their own account. If they have no valid connection yet, the agent shows a connection card, they sign in, and the tool call is retried.
  • Agent author authentication (labelled maker-provided credentials in some screens and older pages): the connection the maker created at design time is used for every conversation.

The second option is convenient and sometimes right. Microsoft's own examples of a fair use are low-risk lookups, such as a weather API or the phone number of a support team for a postal code. The risk appears when the maker's connection reaches data or actions that the users of the agent should not have: a SharePoint library the maker can read, a Dataverse environment where the maker is system administrator, a mailbox the maker can send from. Once the agent is shared, any user can make it act with the maker's identity, and the audit trail shows the maker, not the user.

Until now, admins had one blunt tool against this. The new setting adds a finer one.

Two controls, two different jobs

Both settings live in the Power Platform admin center, under Manage > Environments > (environment) > Settings > Features, and both are per environment. They answer different questions.

Control maker credential options Sharing agents with embedded maker credentials
Question it answers May makers use their own credentials for tools at all? May an agent that uses them be shared or published?
Effect Removes the maker-credential option; every tool requires end-user sign-in Warns, or blocks sharing and publishing of agents judged unsafe
Existing agents Changed immediately: all tools switch to end-user credentials at run time Not changed: nothing is unshared or disabled retroactively
Environment groups Configured on the group when the environment belongs to one Configured per environment
Documentation Control maker-provided credentials Configure sharing agents with embedded maker credentials

The older control, Control maker credential options, is strong but disruptive. Its documentation warns that turning off maker credentials takes effect at once for every agent of the environment, and that autonomous agents (scheduled or event-triggered, with nobody in the conversation) then fail, because every tool call needs a live user sign-in.

The new control, listed in the November 2026 notable changes of Copilot Studio, leaves design-time credentials available and acts only at the moment an agent is distributed. That makes it usable in environments where some agents legitimately run on a service identity.

What makes an agent "unsafe for sharing"

According to the documentation, Copilot Studio treats an agent as unsafe for sharing when both conditions are true:

  1. the agent uses at least one connection that does not allow credential sharing;
  2. that connection uses credentials supplied at design time, instead of asking each user to sign in.

The check also looks through dependencies. An agent that calls a flow, or another agent, which itself uses such a connection can be treated as unsafe too. Microsoft says this dependency-based enforcement "can expand over time", so an agent that passes today could be flagged later without any change on your side. Plan for it.

What is not unsafe matters just as much. Agents that use an approved system identity, such as a service principal, an API key or a managed identity, can still be published when the connector supports the scenario. The control targets personal maker credentials, not every shared credential.

The two modes

The setting is called Sharing agents with embedded maker credentials and has two values.

Mode Behaviour Use it for
All sharing allowed Copilot Studio detects unsafe credential use and informs makers, but blocks nothing Measuring the impact, educating makers, preparing an environment
Safe sharing enforced Copilot Studio blocks the applicable sharing and publishing paths of unsafe agents Environments where credential sharing must be prevented

To set it:

  1. Open the Power Platform admin center.
  2. Go to Manage > Environments and select the environment.
  3. Select Settings, then Features.
  4. Find Sharing agents with embedded maker credentials and pick a mode.
  5. Select Save.

You need permission to manage the settings of that environment.

What makers see when enforcement is on

Enforcement depends on how the agent reaches its users.

Explicit sharing. When a maker shares an agent with people through a Microsoft 365 or Copilot Studio sharing experience, an unsafe agent can still be edited and saved, but it cannot be newly shared. Agents whose tools all use end-user credentials are not affected, since every user signs in as themselves.

Publishing. Some channels make the agent available as part of publishing, with no separate Share step. There, the check happens at publish time: if the agent would run with the maker's user credentials, publishing is disabled while enforcement is active.

Already shared agents. This is the part to explain to makers in advance. Enforcement does not unshare anything, and it does not stop an agent while it runs. But the next publish of an agent that is already shared and still contains unsafe maker credentials can be blocked. In practice, the agent keeps working until someone tries to update it, and then the update is refused until the credential issue is fixed. A maker who needs to ship an urgent fix to a popular agent will hit that wall at the worst moment if nobody warned them.

Fixing an unsafe agent

The warning shown to the maker names the affected connector, the credential type and whether the risk comes from the agent itself or from a flow or agent it calls. The ways out are the same in every case:

  • Switch the tool to user authentication when the action should run with each user's permissions. This is the right answer for anything that reads or writes personal or permission-trimmed data. Check that your channels support it: according to the tools authentication page, Teams, SharePoint, custom websites and the live chat channel of Omnichannel for Customer Service are supported, while the demo website, Facebook, mobile apps and Azure Bot Service channels are not. Teams also needs single sign-on configured, otherwise authentication always fails there.
  • Replace the maker's connection with a system identity (service principal, managed identity, API key) when the action genuinely needs a shared technical account. Give that identity only the permissions the agent needs.
  • Remove or reconfigure the tool, flow or connected agent that brings in the unsafe connection.
  • Check the dependencies: a flow called by the agent can make the whole agent unsafe.

Then validate the agent, publish it and share it again. One more trap: if the agent uses user authentication for its tools, do not turn off authentication at the agent level (Settings > Security > Authentication > No authentication). The authentication page warns that those tools then stop working.

A rollout plan that does not break production

Microsoft's recommended sequence is sensible; here it is with the details that matter in a real tenant.

  1. Inventory first. Set All sharing allowed on a development or validation environment, then on production. Nothing is blocked, and makers start seeing which agents and flows rely on embedded maker credentials.
  2. Sort the findings. For each flagged agent, decide whether the action should run as the user (switch to user authentication) or as a technical identity (switch to a service principal or managed identity). Agents that stay on a maker's personal account are the ones to eliminate.
  3. Watch autonomous agents. An agent started by a trigger or a schedule has no user to sign in. Moving it to user authentication breaks it; it needs a system identity instead.
  4. Test both distribution paths. Try an explicit share and a publish to a channel for a few representative agents, so you know what makers will see.
  5. Warn the owners of shared agents. Tell them their next publish may be blocked until the credentials are fixed, and fix the most-used agents before you enforce.
  6. Enforce. Switch the environment to Safe sharing enforced, then follow blocked sharing and publishing attempts and update your maker guidance with the patterns you keep seeing.
  7. Repeat per environment. The setting is per environment. Agents that depend on components in other environments or tenants need their own validation.

If you already use Control maker credential options to forbid maker credentials altogether in some environments, the new setting adds little there. Its value is in the environments where you want to keep design-time credentials for technical identities while making sure no one's personal access leaks through a shared agent.

Key takeaways

  • An agent that runs a tool on its maker's personal connection lends the maker's access to every user. The new Sharing agents with embedded maker credentials setting finds these agents and can stop them from being shared or published.
  • It is not retroactive and never stops a running agent, but the next publish of an unsafe, already shared agent can be refused.
  • Start in All sharing allowed, fix the findings with user authentication or a system identity, and only then turn on Safe sharing enforced.
  • Keep the older Control maker credential options for environments where no tool should ever use the maker's credentials, and remember that it breaks autonomous agents.

Researched and drafted with AI assistance, then reviewed, edited and published by a human.

Sources

  1. Configure sharing agents with embedded maker credentialslearn.microsoft.com
  2. What's new in Copilot Studiolearn.microsoft.com
  3. Control maker-provided credentials for authenticationlearn.microsoft.com
  4. Configure user authentication for toolslearn.microsoft.com
  5. Configure user authentication in Copilot Studiolearn.microsoft.com