Managing AI agents effectively is essential to prevent risks like data breaches, operational disruptions, or non-compliance. Microsoft 365 Copilot Studio provides tools for quarantining AI agents that misbehave, ensuring security while maintaining productivity. Here’s what you need to know:
- Why it matters: AI agents can misinterpret tasks, access restricted data, or act outside policies, risking compliance and trust.
- Key features: Admins can isolate problematic agents using Power Platform API, PowerShell, or the Admin Dashboard. These tools allow investigation and resolution without permanent deletion.
- How it works: Quarantined agents are restricted from interacting with users but remain accessible for troubleshooting. Continuous monitoring and audit logs help identify issues early.
- Best practices: Regular reviews, advanced policies, and automated triggers can minimize risks and improve oversight.
Takeaway: Effective management tools in Microsoft 365 Copilot Studio help organizations balance AI’s efficiency with robust security and compliance measures.
Copilot Agent Governance
Understanding Microsoft 365 Copilot Studio and AI Agent Management

Microsoft 365 Copilot Studio acts as the hub for creating, deploying, and managing AI agents across your organization’s Microsoft 365 environment. It provides a centralized platform for overseeing AI interactions within Teams, SharePoint, Outlook, and other Microsoft applications.
This platform strikes a balance between leveraging AI’s potential and maintaining enterprise governance. It equips administrators with the tools to monitor and control AI while allowing these agents to streamline workflows and boost productivity. This balance is crucial for organizations aiming to utilize AI without compromising on security or compliance.
What Copilot Studio Agents Do
Copilot Studio agents are designed to automate tasks, simplify workflows, and respond to natural language commands. They operate seamlessly across Microsoft Teams, chat conversations, and other Microsoft 365 applications, embedding themselves into everyday business processes.
These agents can access organizational data through Microsoft Graph, integrate with external systems via APIs, and handle multi-step processes that typically require human input. For instance, an agent can process expense reports by extracting data from receipts, checking them against company policies, and routing them for approval – all while maintaining a detailed audit trail.
They use natural language processing, integrate with Power Platform for automation, and tap into real-time data across the Microsoft 365 suite. Additionally, they can be customized with specific knowledge bases, making them adaptable to the needs of various departments.
One standout feature is their integration with Microsoft Teams, which allows agents to actively participate in conversations, respond to @mentions, and provide proactive updates or reminders. This integration eliminates the need for users to switch between multiple applications, ensuring a smoother experience when interacting with AI.
Why AI Agent Management Matters
Managing AI agents effectively is crucial to avoid risks like exposing sensitive data or disrupting operations. Without proper oversight, these agents could unintentionally share confidential information, make unauthorized decisions, or interfere with critical workflows.
Modern enterprise environments add layers of complexity. AI agents often require access to multiple data sources, system integrations, and user permissions. Without strict controls, an agent assisting with a simple scheduling task could inadvertently access sensitive HR records or share proprietary information with the wrong audience.
Compliance regulations further underscore the need for proper management. Organizations in regulated industries must ensure that AI agents adhere to strict data handling policies, maintain audit trails, and respect data residency requirements. Failing to meet these standards can lead to serious consequences.
Performance and reliability are also tied to management. Poorly configured agents can drain system resources, produce inaccurate results, or fail to complete essential tasks. These issues not only disrupt productivity but can also erode employee trust in AI tools, making teams hesitant to adopt them.
AI agents’ ability to adapt and generate novel responses adds another layer of unpredictability. Unlike traditional software, which follows predefined code paths, AI agents may behave in unexpected ways. While this adaptability is often beneficial, it requires continuous monitoring to ensure they don’t stray from acceptable behavior.
Microsoft 365 Copilot Studio addresses these concerns by offering robust management tools. Administrators can monitor agent activity, set boundaries for usage, and quickly address any issues that arise. These controls ensure that AI agents remain effective and reliable tools, operating within the organization’s risk tolerance while enhancing productivity.
Admin Safety Controls for Quarantining Misbehaving AI Agents
Microsoft 365 Copilot Studio provides administrators with tools to quarantine AI agents that violate policies, ensuring security without disrupting operations. These controls became widely available on July 15, 2025, giving organizations a way to handle misbehaving agents effectively.
"When you quarantine an agent, you save your organization time and money on security issues. This protection keeps your network secure and lets you investigate and resolve the issue without disrupting your organization’s operations." – Microsoft Learn
Quarantining isolates problematic agents without permanently deleting them. This allows administrators to investigate issues thoroughly while preventing harmful interactions. Developers can still access and edit quarantined agents in Copilot Studio, but testing their functionality is restricted. If users attempt to interact with a quarantined agent, they’ll receive an error message, ensuring no further risks are introduced.
Quarantining Agents via Power Platform API

The Power Platform API is a programmatic tool for quarantining agents, ideal for organizations that want to integrate this process into their automated workflows. By using REST API calls, administrators can set an agent’s quarantine status, making this approach especially useful for large-scale deployments.
Here’s the endpoint for quarantining an agent:
https://api.powerplatform.com/powervirtualagents/environments/{EnvironmentId}/bots/{BotId}/api/botQuarantine/SetAsQuarantined?api-version=2022-03-01-preview
To execute this, administrators need three key parameters:
- BotId: The unique identifier for the agent.
- EnvironmentId: The Power Platform environment where the agent is located.
- api-version: Ensures compatibility with the API.
The API requires OAuth2 authorization through Microsoft Entra ID, ensuring that only authorized personnel can take such actions. By integrating this API into security monitoring systems, organizations can automate responses – for instance, isolating an agent immediately if monitoring tools detect unauthorized activity.
Next, let’s look at how PowerShell can offer similar functionality for administrators who prefer scripting solutions.
Using PowerShell for Agent Isolation

PowerShell is another effective tool for quarantining agents, giving administrators direct control over management tasks. It’s especially useful for those who prefer command-line solutions or need to manage multiple agents simultaneously.
Only users with specific administrative roles – such as tenant administrators or Power Platform administrators – can execute these commands, ensuring restricted access. PowerShell supports both quarantining and unblocking agents, enabling full lifecycle management.
Administrators can script processes to identify non-compliant agents based on predefined criteria and quarantine them automatically. This reduces response times and ensures policies are applied consistently. The command-line interface also allows for bulk operations, making it a practical choice for handling large numbers of agents across different environments.
Monitoring with Audit Logs and Protection Status
Beyond technical tools, continuous monitoring strengthens overall agent management. Microsoft 365 Copilot Studio includes audit logging features that record agent activity and quarantine actions. These logs capture details such as data access patterns, user interactions, and system integrations.
Every quarantine action is documented in the logs, creating a clear record of administrative decisions and their timing. This is essential for compliance reporting and security investigations, as it allows organizations to review what led to an agent’s quarantine and confirm that the issue has been contained.
The protection status feature offers real-time insights into an agent’s security posture. Alerts notify administrators of policy violations, unusual access patterns, or integration issues that might indicate compromised behavior. This visibility helps teams act quickly to address potential threats.
| Quarantine Method | Best Use Case | Required Permissions | Automation Capability |
|---|---|---|---|
| Power Platform API | Large-scale deployments and automated responses | OAuth2 authorization via Microsoft Entra ID | High – integrates easily with monitoring systems |
| PowerShell | Direct administrative control and bulk operations | Tenant administrator, Power Platform administrator, or Dynamics 365 Service administrator | Medium – scriptable for batch processing |
| Audit Log Monitoring | Continuous oversight and compliance reporting | Standard administrator access to audit systems | Low – primarily for detection and reporting |
Regularly reviewing audit logs helps identify systemic issues with agent deployment or configuration. These insights allow organizations to refine their management policies, reducing the need for quarantines while maintaining strong security protocols.
Step-by-Step Guide: Quarantining and Managing AI Agents
Handling misbehaving AI agents requires a clear and structured approach: identify the problem, isolate the agent, and resolve the issue. This guide outlines the steps administrators should follow when managing non-compliant agents in Microsoft 365 Copilot Studio.
Finding Non-Compliant Agents
Start by reviewing the activity logs in Copilot Studio. These logs help pinpoint agents that might be accessing unauthorized data or generating inappropriate responses. Look for red flags like high error rates, unexpected topic changes, or interactions that violate your organization’s policies.
The protection status feature provides real-time monitoring, automatically flagging agents that display concerning behavior. For example, it can detect agents attempting to access restricted SharePoint sites, integrate with unauthorized third-party services, or process sensitive information outside approved workflows. Alerts notify administrators of these violations, allowing for swift action.
Agents that frequently switch topics without clear reasons may need configuration updates or, in some cases, quarantine – especially if sensitive content is involved. Once identified, problematic agents should be quarantined immediately.
How to Quarantine Agents
After identifying an agent that requires isolation, the quarantine process depends on your tools and organizational needs. You can use either the Power Platform API or PowerShell to isolate the agent effectively.
Using the Power Platform API
To quarantine an agent via the API, you’ll need three key details: the BotId (the agent’s unique identifier), the EnvironmentId (the Power Platform environment where the agent operates), and the correct API version. These details can be found in Copilot Studio. The BotId is visible in the agent’s URL, while the EnvironmentId is listed in the Power Platform admin center.
Once you have this information, send a POST request to the quarantine endpoint with proper OAuth2 authorization through Microsoft Entra ID. The API will confirm the agent’s quarantine status. This method is particularly useful for organizations with automated systems that need to act quickly on flagged violations.
Using PowerShell
With the appropriate PowerShell modules and administrator credentials, you can run commands targeting the agent’s unique identifier. This restricts the agent’s functionality while keeping its configuration intact for further examination. Quarantining through PowerShell ensures the agent is contained, allowing time to investigate and resolve the issue.
Investigating and Fixing Issues
With the agent quarantined, the next step is to diagnose and address the root cause. The investigation process will vary depending on the specific problem.
- Unexpected topic switching: Check the agent’s Question activity configuration. If the "Allow switching to another topic" option is enabled but shouldn’t be, uncheck it to restrict topic changes. If some topic switching is necessary, limit it to pre-approved topics that align with your organization’s policies.
- Extensibility issues: Microsoft Learn documentation is a helpful resource for troubleshooting known problems and finding workarounds. For instance, if agents aren’t appearing in Microsoft Teams, users can try switching to another chat and returning to Copilot Chat. For Power Automate flows that aren’t triggering properly, adjust the flow description outside of Copilot Studio to improve reliability.
- Publishing or access permission problems: These often arise from misconfigurations rather than security issues. Ensure the agent has the correct permissions for its environment and that sharing settings meet your organization’s requirements. Avoid using distribution groups when sharing agents via the "Specific users in your organization" option, as this can lead to sharing failures.
- SharePoint integration challenges: Issues here often involve unsupported file types or problematic file names. For instance, files with null characters in their names won’t work as knowledge sources – rename or replace them as needed. When adding files in the agent builder, upload them directly from the interface instead of pasting URLs to avoid integration errors.
Once the issue is resolved, test the agent thoroughly in a controlled environment before lifting the quarantine. Document the problem and its resolution in your audit logs. This helps prevent similar issues in the future and informs better policy-making.
To unquarantine the agent, use the same tools (API or PowerShell) with the appropriate commands for restoration. Afterward, monitor the agent closely to ensure the fixes are effective and that no new issues arise during regular use.
sbb-itb-8be0fd2
Improving AI Management with nBold Integration

nBold makes working in Microsoft Teams easier and more secure by automating team creation with pre-set security and compliance configurations. Its app for Microsoft Teams ensures that every new team is built with a consistent and secure framework. This integration works alongside admin controls to maintain team compliance over time.
Automating Management with nBold
nBold takes the guesswork out of team creation by using custom governance templates. These templates ensure that every new team automatically adheres to organizational standards. From the moment a team is created, it’s aligned with your company’s requirements.
Administrators can apply governance rules across all teams using nBold. For example, they can enforce restrictions on data access or control how third-party apps are integrated. By setting these rules at the template level, every team is equipped with a governance structure that supports secure and compliant collaboration.
Another key feature is the ability to pre-configure external applications within the templates. This setup reduces the risk of unauthorized app integrations, ensuring all tools comply with established security protocols.
Connecting Admin Controls with nBold
nBold’s centralized governance dashboard gives administrators a clear overview of team structures and workflows. This visibility helps quickly identify and address any issues that arise during security or compliance incidents, enabling faster communication with team members and minimizing disruptions.
With the Collaboration Template Builder, administrators can create standardized team structures and resource layouts. This uniformity simplifies incident responses by making it easier to pinpoint affected areas.
Best Practices for Maintaining AI Agent Compliance
Building on the quarantine methods and admin controls discussed earlier, these practices are designed to ensure that AI agents remain compliant over time. Keeping AI agents in check requires consistent monitoring, clear policies, and the right tools. The aim is to catch potential problems early – before they disrupt productivity – while upholding your organization’s security standards.
Regular Monitoring and Reviews
Regular audits are a must for organizations managing AI agents within Microsoft 365 environments. Set up automated weekly audit reports to track agent activities and identify any irregularities.
Pay close attention to three key metrics during your reviews: authentication failures, unauthorized data access, and abnormal activity patterns. For example, if an agent suddenly starts making far more API calls than usual, it could signal a malfunction or even a security breach that needs immediate attention.
Enable notifications to alert you when an agent’s status shifts from "Active" to "Warning." This gives you a critical window to address issues before they escalate.
Document each review thoroughly in a centralized log. Include details like the agent’s name, review date, compliance score, and any actions taken. Over time, this historical data becomes invaluable for spotting trends and preparing for security audits or compliance checks.
These monitoring efforts align seamlessly with the advanced policies discussed below.
Setting Up Advanced Policies
Advanced policies serve as a proactive defense against agents that misbehave or operate outside their intended scope. For instance, you can create connector policies to block agents from accessing sensitive data during off-hours or to restrict changes to critical files without prior approval. These rules should integrate with your broader data governance framework.
For high-risk scenarios, add an extra layer of protection by requiring human approval for critical actions. Configure agents to pause and request validation before performing tasks like bulk data deletions, altering security settings, or accessing confidential customer data. This step helps prevent potentially harmful actions.
Credential management is another vital safeguard. Rotate credentials automatically on a regular basis – every 30 days, for example – and immediately revoke access for agents that experience multiple failed login attempts within a short timeframe.
Time-based restrictions can also help. Limiting agent operations to standard business hours (e.g., 9:00 AM to 6:00 PM local time) reduces risk while ensuring productivity during key periods.
With these policies in place, you’ll be better prepared to evaluate and implement quarantine methods as part of your overall response strategy.
Comparing Quarantine Methods
Choosing the right quarantine method depends on the scope and urgency of the incident.
| Method | Best For | Response Speed | Complexity | Reversibility |
|---|---|---|---|---|
| Power Platform API | Large-scale incidents affecting multiple agents | ~2–5 minutes | High | Complete |
| PowerShell Scripts | Single agent issues requiring detailed investigation | ~30–60 seconds | Medium | Complete |
| Admin Dashboard | Quick temporary isolation during critical moments | ~10–15 seconds | Low | Complete |
| Automated Triggers | Preventive quarantine based on defined behavior patterns | Immediate | High | Conditional |
For widespread incidents involving multiple agents, the Power Platform API is a solid choice. While it takes a few minutes to set up, it provides detailed logs that are invaluable for post-incident analysis.
If you’re dealing with a single agent, PowerShell scripts allow you to isolate the agent while simultaneously reviewing its activity logs, configuration, and potential fixes. This method is ideal for in-depth troubleshooting.
For urgent situations, the Admin Dashboard offers the fastest response. With just a few clicks, administrators can isolate an agent in seconds, minimizing immediate risks.
Finally, automated triggers act as a preventive measure, quarantining agents based on predefined behavior patterns. While highly efficient, this approach requires careful calibration to avoid false positives.
A well-rounded compliance strategy often combines these methods – using automated triggers for routine issues, PowerShell scripts for detailed investigations, and manual dashboard controls for emergencies.
Conclusion: Ensuring Security and Productivity with Admin Controls
Managing AI agents within Microsoft 365 Copilot Studio requires striking a careful balance between safeguarding security and maintaining operational efficiency. Throughout this discussion, we’ve emphasized the importance of compliance and the steps necessary to secure AI operations. The admin safety measures we’ve covered – ranging from Power Platform API quarantine methods to PowerShell isolation scripts – form the backbone of a solid strategy for managing AI across your organization.
The success of your approach hinges on staying ahead of potential issues rather than reacting to them after the fact. Regular audits, well-defined quarantine protocols, and thorough audit logs are essential tools for staying proactive. Organizations that take these steps consistently outperform those that only act when problems arise. Remember, managing AI agents isn’t a one-and-done task – it’s an ongoing process that requires constant attention and adjustment.
Quarantine methods are most effective when paired with preventive strategies. Automated triggers can help catch problems early, while dashboard controls allow for quick isolation when needed. Each method has its role: PowerShell scripts are ideal for deep investigations, API calls handle larger-scale incidents, and dashboards provide immediate control for urgent situations.
To stay secure and productive, make it a priority to refine your admin controls regularly. Update policies, rotate credentials on a schedule, and conduct compliance audits to ensure your Microsoft 365 environment remains both secure and efficient. As AI continues to evolve, so should your management practices.
Strong admin controls don’t just prevent incidents – they also ensure compliance and help your team make the most of AI’s productivity potential.
FAQs
How does Microsoft 365 Copilot Studio help keep AI agents secure and compliant without disrupting productivity?
Microsoft 365 Copilot Studio takes a proactive approach to keeping AI agents secure by using real-time runtime protections to track their behavior as it happens. It also enforces strict security and governance protocols, such as data residency requirements, data loss prevention (DLP) strategies, and adherence to certifications like GDPR and ISO 27001. These safeguards ensure AI agents stay compliant with your organization’s policies.
On top of that, Microsoft Purview plays a key role in managing data security and compliance. Each custom AI agent is equipped with secure app registrations to create safe communication pathways. Together, these tools work to minimize disruptions, handle any potential issues, and keep operations running smoothly, all while ensuring your AI solutions align seamlessly with your business goals.
What’s the difference between using PowerShell and the Power Platform API to quarantine misbehaving AI agents?
The key distinction between these tools lies in their purpose and scale of use. PowerShell is a command-line utility best suited for quick, manual tasks. For example, administrators can use it to quarantine AI agents instantly by executing specific commands, making it a go-to option for urgent or one-time actions.
On the flip side, the Power Platform API is built for automation and scalability. It offers a RESTful interface that can be integrated into custom workflows or enterprise-level governance systems. This makes it an excellent choice for managing large-scale or recurring tasks programmatically.
In summary, PowerShell is ideal for immediate, hands-on control, while the Power Platform API excels in automating and managing tasks at scale.
How can organizations ensure AI agents don’t access unauthorized data or disrupt operations?
To protect against data breaches and disruptions to operations, organizations need to put in place strong security measures like data encryption, strict access permissions, and network segmentation. These practices help control what AI agents can access, keeping sensitive information secure and reducing risks.
On top of that, having a thorough AI governance framework is key. This means incorporating continuous monitoring, detailed activity logs, and routine security tests to spot and fix issues quickly. By sticking to these strategies, companies can ensure their AI systems follow internal policies and function safely without hindering productivity.