Forum Discussion
adminit_cz
Nov 27, 2026Occasional Reader
Copilot in Excel acts outside of the file
Use case 1:
A user in a commercial tenant with a Copilot Premium license and assigned Copilot Studio credits used Copilot in Excel to manipulate an open workbook (renaming columns and calculating a new column based on their values). During this operation, Copilot tried to access completely unrelated files in a different location on the user's personal OneDrive. Because of persistent instructions in this user's Copilot settings, the access request was intercepted with an Allow/Deny prompt, which the user denied, preventing the access.
Use case 2:
Another user in the same tenant with the same licensing used Copilot to process several files into a report. Copilot saved the report in an entirely different location than instructed, exposing confidential data to other users.
Below follows a translation (Czech -> English) of the conversation from screenshots the user of Use Case 1 provided. For user 2, we sadly do not have any screenshots of the conversation.
User: Rename the sheet to match the number recorded in the filename. After column Q, insert a column in which you calculate the difference between columns P and Q and name it "Fee differences".
The allow/deny prompt: Confirm sources for your request. Confirm each source and confirm it is credible and relevant. Confidential information or unwanted content from these sources may be visible to anyone who has access to this file. (The files listed in the prompt are from a different location and entirely unrelated to the task at hand.)
Copilot (after user blocked the unwarranted access request): The workbook was left unchanged. The edit was not confirmed; thus, sheet 521xxx was not renamed, and column "FEe differences" was not inserted.
User: Why didn't you do it? You didn't need any additional source.
Copilot: You are correct. I was supposed to take the sheet name from the opened workbook's name and calculate the difference directly from columns P and Q. Searching in other files was my mistake. The write operation itself was not confirmed; thus, nothing changed in the workbook. I am sorry for the delay.
Did anyone encounter similar behavior? In light of these events, we cannot allow our users to use Copilot if it acts autonomously outside of given instructions.
3 Replies
- StefanBlom44Tin Contributor
Yes. This behavior is documented in Microsoft’s Copilot architecture and is consistent with the capabilities of the newer agent-based Copilot in Excel. However, the two incidents should be treated as potential data-governance and security issues, not normal Excel functionality.
Recommended solution
I would recommend the following actions before allowing wider deployment:
1. Disable unnecessary data sources: In Excel Copilot, go to Add → Change data sources and disable Work search, web search, and federated connectors when they are not required.
2. Use Chat or Plan mode: Avoid Edit mode for sensitive workbooks until the behavior has been investigated. Chat mode keeps Copilot's interaction within the chat, while Plan mode allows users to review the proposed actions before execution.
3. Investigate the incidents: Use Microsoft Purview Audit to identify which files Copilot accessed, when it accessed them, and which resources were involved. Use eDiscovery or DSPM for AI to investigate prompts and responses.
4. Review OneDrive and SharePoint permissions: Check the sharing permissions of the incorrectly saved report, revoke unauthorized access, and restore the report to its intended location.
5. Open a Microsoft support ticket: Provide the screenshots, timestamps, user IDs, workbook details, and audit records. Ask Microsoft to investigate unexpected cross-location file retrieval and incorrect report-save destinations.
Important distinction
- Use case 1: Copilot attempted to retrieve unrelated files. The user denied access, so there is no evidence from the conversation that those files were actually accessed.
- Use case 2: Potential confidentiality breach. This requires an immediate permissions and audit investigation.
My recommendation
Do not approve unrestricted production rollout yetYou do not necessarily need to disable Copilot tenant-wide. However, I would temporarily restrict its use for confidential data and business-critical workflows until Microsoft explains both incidents and appropriate safeguards are validated.
- mcclure2000Brass Contributor
Yes, this is a legitimate security and data-governance concern, not simply a Copilot usability issue.
The two cases suggest possible problems with agent grounding, file-context boundaries, and output destination control.
In particular:
- Copilot should not access unrelated OneDrive files when the task is limited to an already-open Excel workbook.
- Access to additional data should require explicit user approval.
- Generated reports must respect the explicitly specified save location.
- Tenant permissions and sensitivity labels should prevent unintended disclosure.
I would recommend temporarily suspending unrestricted Copilot use for confidential workflows until Microsoft investigates.
The Microsoft 365 audit logs can help establish exactly which files Copilot accessed. Purview sensitivity labels, DLP policies and SharePoint/OneDrive permissions should also be reviewed.
References:
- [Original discussion of the two incidents]
- [Microsoft: Copilot data protection and auditing]
My recommendation: Raise a Microsoft support ticket with both cases, timestamps and screenshots. Treat the unexpected access and incorrect file saving as potential data-security incidents.
- adrelicata53Tin Contributor
Yes. Both cases should be treated as potential Copilot security and data-governance incidents, not merely usability problems.
The first case suggests Copilot initiated unnecessary retrieval of files outside the active workbook. The second raises a more serious concern: incorrect output placement and possible unauthorized disclosure of confidential information.
The fact that users share the same tenant and licensing makes a tenant-wide investigation worthwhile, although it does not establish a common root cause.
I found your exact scenario posted on Microsoft Tech Community, dated November 27, 2026. It is worth following for additional reports: Copilot in Excel acts outside of the file : https://techcommunity.microsoft.com/discussions/microsoft-copilot/copilot-in-excel-acts-outside-of-the-file/4577426
What I would recommend
1. Preserve evidence: screenshots, prompts, timestamps, workbook URLs and unexpected file paths.
2. Check Microsoft Purview Audit: identify which files Copilot actually accessed and which operations occurred.
3. Investigate the second incident: verify the destination file's sharing permissions and access history.
4. Open a Microsoft support case: request escalation to the Microsoft 365 Copilot engineering team, specifically for unintended file discovery and incorrect file-write destinations.
My assessment: I would temporarily suspend Copilot in Excel for affected users handling confidential data until Microsoft explains both behaviors and provides a mitigation.
Importantly, Microsoft documents that Copilot respects existing permissions. That does not mean every action it takes is appropriate or consistent with the user's instructions.