OneDrive MCP security: tools, permissions and risks

Microsoft's official OneDrive MCP server is in preview and exposes write, delete, share and relabel tools alongside reads, so admins must plan limits before approving it. A read-only community server is a different product with different limits.

On this page

Can admins limit what a OneDrive MCP agent can change?

The official Microsoft OneDrive MCP server includes read, write, delete, share and sensitivity label tools, so it does not meet a read-only requirement out of the box. Any limit on what an agent can change comes from the signed-in user's permissions, tenant policy and admin approval, not from a documented read-only switch in the supplied material. Security and IT leads should treat the server as write-capable until their own tenant testing shows otherwise.

The server is a preview feature in Microsoft's Agent 365 reference, and the same OneDrive tools are also listed as a Work IQ OneDrive MCP connector, also marked as preview. Microsoft says the preview tool names and parameters might change, so policies written against specific tool names may need revisiting. Microsoft's Work IQ documentation states that write operations are on by default and that the organization's permissions and policies still apply. Confirm which of these two paths your tenant exposes, because the Microsoft Learn reference says the application-specific OneDrive tools exist only for backward compatibility and that new projects should point to Work IQ MCP instead.

Before approving any agent, confirm in your tenant which accounts can consent to the connector, whether write operations can be disabled or restricted for the Work IQ connector, and how an administrator can block or remove the OneDrive tools from specific agents. Test each risky tool with a non-sensitive test account: delete, share with an external address, and sensitivity label changes, including the default justification text of Changed by MCPServer. Record which tools the agent actually calls, and recheck after any preview update.

Which OneDrive MCP capabilities are built in, preview or community-only

This table compares Microsoft's official OneDrive MCP server, the Work IQ OneDrive connector and a read-only community server on the capabilities that drive risk. Treat any cell marked to confirm as an open item to resolve with Microsoft before approval. The main takeaway is that the official surface includes delete, sharing and label changes, while the community server exposes none of them.

CapabilityOfficial Microsoft serverWork IQ connectorRead-only community server
Read toolsYes: five read tools, including file search, folder listing and small file readsListed as part of Work IQ, tool set to confirm with MicrosoftYes: five read-style tools using HTTP GET only
Create, rename, copy, moveYes: write tools for creating, renaming, copying and moving files and foldersTo confirm with MicrosoftNo: cannot upload, edit, rename or move content
DeleteYes: includes deleteFileOrFolderInMyOnedriveTo confirm with MicrosoftNo: cannot delete content
Share with read or write rolesYes: sends sharing invitations granting read or write roles to email addressesTo confirm with MicrosoftNo: no write requests, so no sharing changes
Set or remove sensitivity labelYes: requires a justification text, default is Changed by MCPServerTo confirm with MicrosoftNo: no write requests, so no label changes
5 MB file operation limitStated: file operations limited to 5 MB or lessTo confirm with MicrosoftTo confirm in the project README
Preview statusPreview: Agent 365 reference marks the server as preview, names may changePreview: listed as a preview feature in Work IQ toolsNot a Microsoft product, no vendor preview label
Write operations on by defaultTo confirm with Microsoft for the official serverYes: Microsoft states write operations are on by defaultNo: read-only by design
Tenant versus personal scopeTenant-level URL, but the server targets the authenticated user's personal OneDriveTo confirm with MicrosoftPersonal OneDrive only, accessed through Microsoft Graph

Which OneDrive MCP tools carry the most risk: delete, share and relabel

The official OneDrive MCP server exposes read, write, sharing and labeling tools under one connected identity. The cards below rank the capabilities that matter most for an approval decision, what a misused or manipulated agent could do with each, and what the audit trail would and would not show.

Delete files and folders

The write set includes deleteFileOrFolderInMyOnedrive, which removes items from the connected user's personal OneDrive. An agent that misreads a request, or follows instructions planted in a document it read, could remove files the user never meant to lose. Ask whether your users' OneDrive recycle bin and retention settings cover what the agent can delete, and confirm with Microsoft how a deletion appears in the Microsoft 365 audit log for the tenant before approving write access.

OneDrive reference

Share with external recipients

The shareFileOrFolderInMyOnedrive tool sends sharing invitations that grant read or write roles to any recipient email address. This lets an agent widen access to a file, including to people outside the organization, without a human confirming each recipient. Check whether your tenant's external sharing settings apply to MCP-initiated invitations, and confirm in a test tenant what the invitation records show about the agent as the actor.

Change sensitivity labels

The setSensitivityLabelOnFileInMyOnedrive tool can set or remove a file's sensitivity label. It takes a justification text for audit purposes, and that text defaults to 'Changed by MCPServer' if the agent does not supply its own. A label removal could expose a protected file to downstream sharing or data loss prevention rules, so review whether your labeling policy restricts who may downgrade a label and whether the justification field is recorded in a form your auditors can search.

Create, rename, move and copy

Creating, renaming, copying and moving files and folders changes the structure users rely on. A moved or renamed file can break links, shortcuts and automated workflows that point to its old path, and a copy can place sensitive content in a folder with different sharing settings. These actions often look routine in logs, so ask Microsoft which of them generate a distinct audit entry and whether the entry records the source and destination paths.

Read small text and binary files

The read tools readSmallTextFileFromMyOnedrive and readSmallBinaryFileFromMyOnedrive return contents of files up to 5 MB into the model's context. Any file the user can open becomes readable by the agent, including documents with regulated personal data, and text returned to the model can carry prompt injection from hostile content inside the file. Confirm where returned content is processed and retained, and whether read calls are logged with enough detail to show which files were opened.

How the official server scopes an agent to one user's OneDrive

The official OneDrive MCP server acts on the authenticated user's personal OneDrive, so every read, write, delete and share runs with that user's rights, not with a separate service account. Microsoft's OneDrive reference states the server targets that personal drive, and it limits all file operations to 5 MB or less per operation. That size cap bounds what a single tool call can move or overwrite, but it does not bound the total volume an agent can touch across many calls, so reviewers should not treat it as a data-loss control.

Access is enforced in layers that sit outside the agent. Entra identity establishes who the user is and which consent the agent holds, the tenant's policies decide which MCP servers and connectors may be used, and the user's OneDrive permissions decide which files exist for that user to act on. Microsoft's Work IQ in Copilot Studio documentation says write operations are on by default and that the organization's permissions and policies still apply. Confirm with Microsoft which of these layers your tenant controls directly and which settings you must configure, because a user who can already open a file can usually ask the agent to act on it.

The tenant endpoint follows the pattern ` and the server is still marked as a preview. Microsoft says preview tool names and parameters may change, so do not hard-code tool names or parameter shapes into scripts, allowlists or approval rules that you expect to last. Instead, record the server ID and the tool list your tenant exposes at review time, and re-check that list after Microsoft updates the preview. Ask Microsoft what change notice applies to preview servers in your tenant before you depend on them for regulated data.

Where a request to change a file is checked

The diagram starts with the user's AI client, which calls the tenant-level Agent 365 OneDrive server for the official preview server. The server first relies on a Microsoft identity check for the signed-in user, then a policy and permission check decides whether the write goes ahead. An admin block or policy denial stops the request before it reaches the user's OneDrive. A permitted write lands in OneDrive and produces an audit record. This is illustrative: confirm in your tenant which policies apply and where audit records appear.

Illustrative path of a write request through the official OneDrive MCP server.

How the official server, the Work IQ connector and a read-only community server differ

Microsoft documents an official OneDrive MCP server, identified as mcp_OneDriveRemoteServer, in its Agent 365 MCP server reference. The page is marked as a preview feature, and Microsoft says preview tool names and parameters might change, so avoid hard-coding them into workflows. The server exposes both read and write tools and targets the authenticated user's personal OneDrive, with file operations limited to 5 MB or less.

  • Can read: the server includes tools such as getOnedrive, getFolderChildrenInMyOnedrive, findFileOrFolderInMyOnedrive, readSmallTextFileFromMyOnedrive and readSmallBinaryFileFromMyOnedrive.
  • Can change: create, rename, copy, move and delete tools cover files and folders, including deleteFileOrFolderInMyOnedrive.
  • Can widen access: shareFileOrFolderInMyOnedrive sends invitations with read or write roles to email addresses.
  • Can relabel: setSensitivityLabelOnFileInMyOnedrive sets or removes sensitivity labels, with a default justification of "Changed by MCPServer".
  • Maintenance status: Microsoft says the application-specific Microsoft 365 MCP tools, including OneDrive, are only for backward compatibility, so confirm whether your tenant uses this path or the Work IQ path before approving it.

Confirm with Microsoft which tool names and permission scopes apply in your tenant at the time of review, and test delete, share and relabel calls in a non-production account.

Where the OneDrive MCP server leaves gaps an organization must cover

The official OneDrive MCP server exposes reads, writes, sharing and label changes, and the supplied documentation does not describe a read-only mode or a per-tool allowlist for admins. Each card below names one gap, the control teams usually put in front of it, and what to confirm in their own tenant before approving the server.

No documented read-only mode

The official server bundles read tools with tools that create, rename, copy, move and delete files and folders. The supplied documentation does not describe a switch that turns the server into a read-only connection. Before approval, confirm with Microsoft whether any admin setting removes the write tools, and if none exists, plan to limit access by identity and by which users may connect. Ask the same question about Work IQ, where write operations are on by default.

OneDrive reference

Preview tool names may change

Microsoft states that the preview tool names and parameters might change. A connector, runbook or approval record that depends on a specific tool name can break without warning. Keep the approved tool list as a dated record, re-check it after each Microsoft update, and avoid writing automation that hard-codes these names. Treat the server as a preview feature in your risk register until Microsoft marks it generally available.

OneDrive reference

Sharing invitations to outside recipients

The shareFileOrFolderInMyOnedrive tool sends invitations that grant read or write roles to recipient email addresses, so an agent can widen access to a file without a person reviewing the recipient. Use Microsoft 365 sharing settings to restrict external sharing for the groups that use the agent, and use data loss prevention policies to detect sensitive content leaving the tenant. Test the tenant's sharing rules with a sample file before pilot users connect.

OneDrive reference

Relabeling with a default audit note

The setSensitivityLabelOnFileInMyOnedrive tool can set or remove a file's sensitivity label. It asks for a justification for audit purposes, and the default text is Changed by MCPServer. A label removed with that default text can look routine in the audit trail. Require reviewers to check label changes made through the agent, and confirm with your compliance team that the justification field is filled in with a meaningful reason before any label change is accepted.

OneDrive reference

No supplied per-tool allowlist

The supplied documentation does not describe an admin control that approves or blocks individual OneDrive tools, such as delete or share, while leaving reads available. Ask Microsoft whether the Agent 365 or Work IQ admin experience can scope approval by tool, and record the answer. Until a per-tool control is confirmed, the practical limit is the set of users and identities allowed to connect, plus the permissions those users already hold in OneDrive.

Work IQ OneDrive connector

Community servers are not Microsoft products

Many OneDrive MCP servers on GitHub are community projects. The joescars/onedrive-mcp project describes itself as read-only and uses only HTTP GET requests against Microsoft Graph, but it still runs code and holds credentials outside Microsoft's managed service. Do not install community servers on managed endpoints or connect them to corporate tenants without a security review of the code, the dependencies and the token storage. Block them through endpoint and browser policy where possible.

Community project on GitHub

The order of work before an OneDrive MCP agent touches production files

This sequence lets an organization decide which OneDrive MCP server, tools and users are acceptable, prove the risky actions behave as expected in a disposable pilot, and confirm admins can see what happened before any agent reaches real files.

  1. Inventory users, agents and sensitive folders

    The security lead and the OneDrive owners list which users and which agent clients would connect, and which folders hold regulated, confidential or legally held content. Mark the folders that must never be reachable from an agent. The output is a written inventory with one owner per user group and one named folder list. Confirm it with the business owners of each folder, because a personal OneDrive can contain copies of shared project material that the inventory would otherwise miss.

  2. Choose and document the server type

    The IT and security teams decide between Microsoft's official OneDrive MCP server, which is a preview feature under the Agent 365 reference, and the Work IQ OneDrive connector, and they record why. Microsoft's OneDrive reference says the application-specific Microsoft 365 tools are kept for backward compatibility and points new projects to Work IQ MCP. Any community server, such as joescars/onedrive-mcp, is recorded as community code with its own review. The output is a one-page decision record that names the server, its status and its owner.

  3. Define allowed and blocked tools per group

    For each user group from step one, the security and identity teams list which read, write, share and relabel tools are allowed and which are blocked. Map the official server's tools to these decisions, including delete, share and sensitivity label changes. Confirm with the admin console or the Work IQ controls that blocked actions cannot be run by the agent client, and note where a control is only a policy statement. The output is a tool matrix that the admins sign off.

  4. Test delete, share and relabel with disposable files

    In a pilot account containing only disposable test files, a tester asks the agent to delete a file, share a file with an outside email address at the write role, and change a sensitivity label. The security team records the exact prompt, the tool called, the result and whether the organization's policy stopped it. Test files must stay within the 5 MB limit Microsoft documents for file operations. The output is a test log showing which blocked actions were actually blocked, and any that were not.

  5. Confirm audit records and sharing alerts

    After the pilot, an admin checks that the actions in the test log appear in the audit records and any sharing alerts the tenant generates, and that the entries identify the user and the agent client. The sensitivity label justification text should also show in the record, since the default text is 'Changed by MCPServer' unless the client sets its own. The output is a screenshot or export for each test action, and a note of any action with no visible record.

  6. Set a retest date and watch tool changes

    The security owner sets a fixed retest date and assigns someone to watch Microsoft's documentation for changes. Microsoft says the preview tool names and parameters may change, so the tool matrix and any scripts or prompts that name tools must be checked against the current reference at each retest. The output is a dated retest entry that repeats steps three to five and records any renamed or added tools before wider rollout.

What buyers and reviewers ask before approving OneDrive MCP access

Can the official OneDrive MCP server be set to read-only?

Based on the supplied Microsoft documentation, the official server does not ship as a read-only option. It includes read tools such as getOnedrive, getFolderChildrenInMyOnedrive, findFileOrFolderInMyOnedrive, readSmallTextFileFromMyOnedrive and readSmallBinaryFileFromMyOnedrive, but the same server also includes write tools that create, rename, copy, move and delete content. Confirm in the Microsoft Agent 365 admin experience and the OneDrive reference whether any tenant-level setting restricts the server to its read tools. If no such setting is documented for your tenant, treat read-only as something you must enforce elsewhere, such as through permissions on the accounts and files the agent can reach.

Can an admin remove the delete and share tools from the official server?

Confirm this before approval, because the supplied documentation does not describe a per-tool switch. The official server includes deleteFileOrFolderInMyOnedrive, which removes files and folders, and shareFileOrFolderInMyOnedrive, which sends invitations granting read or write roles to recipient email addresses. Ask Microsoft or check the admin controls for your tenant whether individual tools can be blocked, and whether blocking a tool is supported in your edition. Also note that Microsoft says tool names and parameters in preview may change, so any allowlist you write should be reviewed after updates rather than assumed to stay correct.

Is a community read-only OneDrive server safe for corporate data?

A read-only design reduces one risk but does not settle the review. The community project joescars/onedrive-mcp describes itself as a read-only server for personal OneDrive through Microsoft Graph, exposes five read-style tools and uses only HTTP GET requests, so it cannot upload, edit, rename, move or delete content. Its README describes personal OneDrive, so confirm whether it works with work or school accounts and how it authenticates, since community servers often handle sign-in differently from Microsoft's server. Because it is not a Microsoft product, you would also need to review its code, dependencies, maintenance status and how it stores tokens, as with any third-party software that holds access to corporate files. The project on GitHub is the starting point for that review.

What does the 5 MB limit cover and what does it leave open?

Microsoft's OneDrive reference says the server limits all file operations to 5 MB or less, and it targets the authenticated user's personal OneDrive. The limit caps the size of files the agent can operate on, so it reduces how much content a single call can read or write. It does not limit how many files an agent can touch, how many calls it makes, or which folders it can reach beyond what the signed-in user can already access. It also does not prevent the agent from deleting or sharing small files, which are well within the limit. Confirm with Microsoft whether the limit applies to every tool, including delete and share, and whether it changes for files in shared libraries.

Do Work IQ writes need to be turned off?

Not by default, but you should decide this on purpose. Microsoft's Work IQ documentation says write operations are on by default, and that the organization's permissions and policies still apply. That means an agent using Work IQ can change OneDrive content the signed-in user is allowed to change. Review whether your tenant can restrict write operations, and check the Work IQ in Copilot Studio guidance for the current options. Microsoft also points new projects toward Work IQ MCP rather than the legacy application-specific OneDrive tools, so confirm which path your team would use before writing an approval policy.

How long might the OneDrive MCP preview last?

The supplied documentation does not give an end date for the preview, so ask Microsoft directly for the current status and any planned general availability timing. Both the Agent 365 server and the Work IQ OneDrive connector are marked as preview features, and Microsoft warns that preview tool names and parameters might change. Plan for that: avoid hard-coding tool names into scripts or policies, keep a record of the version you approved, and schedule a review when Microsoft updates the server or moves it out of preview.

What drives the effort to assess and configure this, and what can we do alone?

Effort depends on how many users will connect, which server you choose (official Agent 365 or Work IQ, or a community server), whether you need to allow write tools, and how much your existing Microsoft 365 admin policies already cover. Your own team can usually inventory who needs access, confirm tenant settings, document the approval decision and set user-level permissions. Outside help is most useful for independent testing of prompt injection, tool permissions and data exposure, and for a findings report with fixes and a retest. DeployOpen performs AI agent rollout security reviews of this kind under a written, fixed scope, so ask for a quote based on your tenant, the servers under review and the tests you need.

What should we confirm with Microsoft before approving the official server?

Confirm the tenant URL pattern and admin path, the status of the preview, whether individual write, delete and share tools can be blocked, and whether the 5 MB limit applies to every tool. Also confirm how sign-in and consent work for the tenant, what audit records exist for agent actions, and whether sensitivity label changes are recorded with the justification text. Ask Microsoft to state in writing which controls apply to the official server and which apply only to Work IQ, since the two are documented differently and the tool lists overlap.

What a security reviewer asks to see for OneDrive MCP access

This table lists the evidence a security reviewer should request before approving OneDrive MCP access, what each item proves, and where the organization can find it. Read each row as a request to the team that runs the connection. The main takeaway is that the tool list and the write and share decisions matter most, because Microsoft documents that preview tool names and parameters may change.

Evidence requestWhat it provesWhere it comes from
Tool list the server exposed on the review dateWhich read, write, delete, share and sensitivity label tools the agent could call at that moment, so the review matches the live surfaceMicrosoft Agent 365 MCP server reference for OneDrive (preview), plus a dated capture from the tenant's MCP server listing
Decision record for write and share toolsWho approved create, rename, move, copy, delete and sharing actions, and the business reason for each, since Work IQ treats write operations as on by defaultInternal change record, cross-checked against the Work IQ settings in Microsoft Copilot Studio documentation
Entra consent and user list for connecting identitiesWhich users or groups consented to the connection, what delegated permissions they granted, and whether any app consent was given to all usersMicrosoft Entra admin documentation for enterprise applications and consent, plus the sign-in and consent logs for the connection
Sharing policy settings applied to OneDriveWhether external sharing and invitations with read or write roles are restricted, so an agent cannot widen access beyond policySharePoint and OneDrive admin documentation for sharing settings in the Microsoft 365 admin center
Audit or sensitivity label change logsWhich label changes were made by the agent, with the justification text recorded, and whether the default text was left in placeMicrosoft Purview audit log documentation and sensitivity label reporting for the tenant
Retest record after preview changesThat the tool list, parameters and permissions were rechecked after Microsoft changed the preview, and that findings were closedInternal test record, plus the OneDrive reference page for any change notes Microsoft publishes

How DeployOpen works on this

DeployOpen reviews how an OneDrive MCP setup is configured, which tools an agent can call, and what those tools can read, change, share or relabel in your tenant. The work is fixed-scope, with findings, fixes and a retest agreed in writing before testing starts.

How we scope

  • Confirm which OneDrive MCP server is in use, official or community, and which tools are enabled for each agent
  • Agree in writing which read, write, delete, share and sensitivity-label tools are in scope for testing
  • Define the accounts, sample folders and tenant settings the review covers, and what stays out of scope

How we build

  • Build a controlled test tenant and sample OneDrive content so testing never touches production files
  • Test prompt injection attempts that try to make the agent delete, share or relabel files it was not asked to change
  • Check permission boundaries, including whether a read-only setup can reach write tools through any path

How we hand over

  • Deliver a findings report that ranks each risky tool by impact and lists the admin settings behind it
  • Provide written fixes for tool allowlisting, consent scope, sharing limits and sensitivity label handling
  • Retest the agreed fixes and document the results so your security and compliance reviewers can check them

How we support

  • Offer ongoing support as a retainer for changes to Microsoft's preview tool names and parameters
  • Run continuous testing when new agents, connectors or MCP servers are added to the OneDrive environment
  • Prepare the evidence your AI security questionnaire and internal review usually ask for, within the agreed scope

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.