Microsoft 365 shared mailbox → OneDrive · SharePoint · Google Drive

How to save shared mailbox attachments to OneDrive, SharePoint or Google Drive

Updated: November 2026

Invoices land in invoices@, purchase orders in orders@, statements in accounts@. Several people read the same Microsoft 365 shared mailbox, and somebody has to drag every PDF into the right folder. Outlook can't do it for you. Here is what Microsoft actually offers, the permissions and limits that trip teams up, and how to get each attachment filed by type without anyone touching it.

Free plan, no credit card · Help by email

Why shared mailboxes are a special case

Microsoft describes shared mailboxes as the tool for addresses that several people need to work from, such as a company information or support address. They are popular for finance and operations because a shared mailbox can store up to 50 GB without its own license, and up to 25 users can work in it.

That design is also what makes automation awkward:

Your options, checked against Microsoft's docs

Was an EWS script doing this? Microsoft is retiring Exchange Web Services in Exchange Online: blocking began on 1 October 2026 and EWS is permanently off from 1 April 2027. If an old PowerShell or Python job copied this mailbox's attachments, see how to replace an EWS attachment job.

1. Outlook rules: can't save attachments to the cloud

Microsoft's help article on Outlook rules covers moving messages to folders, deleting them, changing importance, flagging and forwarding or redirecting. No rule action uploads an attachment to OneDrive, SharePoint or Google Drive. Rules are still useful as a first step: sorting supplier mail into a subfolder that a flow then watches.

Verdict: good for sorting messages, not for saving files.

2. Power Automate with the shared mailbox trigger

The Office 365 Outlook connector has a dedicated trigger, When a new email arrives in a shared mailbox (V2). You give it the shared mailbox address and, optionally, a folder, sender, recipient or subject filter, plus two switches that matter here: Only with Attachments and Include Attachments. Each attachment then goes to OneDrive for Business, SharePoint or Google Drive with that connector's Create file action. Microsoft lists all four connectors as Standard in Power Automate.

Good: native to Microsoft 365, no premium connectors, can also post to Teams or start an approval. Watch out: the permissions, ownership and size limits covered below, and the flow saves files without knowing what they are.

3. Inbox2Drive

Inbox2Drive connects to mailboxes with Microsoft sign-in (OAuth2) or IMAP, reads each new attachment, classifies it with AI (invoice, receipt, contract, payslip and more) and saves it into the right folder in Google Drive, OneDrive or Dropbox, sorted by type, date or sender.

Good: no flow to build; files arrive sorted; the same account can also handle Gmail and IMAP mailboxes. Watch out: today Inbox2Drive reads the mailbox of the Microsoft account you sign in with, not a Microsoft 365 shared mailbox directly, and Exchange Online no longer accepts password-based IMAP. The workaround is a rule in the shared mailbox that forwards attachments to a user mailbox you connect, so read how to set it up first.

Power Automate: shared mailbox attachments to SharePoint or OneDrive, step by step

Before you start. The account that creates the Outlook connection must have access to the shared mailbox. If the trigger fails with "Specified object was not found in the store", Microsoft's advice is to check that this account is a member of the shared mailbox. After an admin grants access, Microsoft says it can take about two hours before Power Automate sees the permission. Power Automate cloud flows also require a work or school account; personal Microsoft accounts were deprecated in 2025.
  1. Create an automated cloud flow

    Choose Create → Automated cloud flow and pick When a new email arrives in a shared mailbox (V2) from Office 365 Outlook. Enter the shared mailbox in Original Mailbox Address, for example invoices@yourcompany.com.

  2. Turn on both attachment switches

    Under advanced options, set Only with Attachments and Include Attachments to Yes. Both default to No. Microsoft's troubleshooting article explains that with Include Attachments off, the attachment content is empty and a SharePoint Create file step fails with a 400 Bad Request.

  3. Loop through the attachments

    Add Apply to each over Attachments. Add a condition that skips inline images (Is Inline equals false) so signature logos don't fill the folder. Microsoft also notes that with Dynamic Delivery a trigger can fire twice, the first time with an empty attachments array, so check that the array is not empty.

  4. Create the file

    For a team, use the SharePoint action Create file: Site Address, Folder Path (it must start with an existing library), File Name and File Content from the attachment. The OneDrive for Business Create file action takes Folder Path, File Name and File Content. For Google Drive, use Create file (V2).

  5. Make names unique, then test

    Prefix the received date so two "invoice.pdf" files don't collide, send a test email to the shared address and check the run history.

Example file name expression (rename Apply_to_each to match your loop):

concat(formatDateTime(triggerOutputs()?['body/receivedDateTime'],'yyyy-MM-dd'),'_',items('Apply_to_each')?['name'])

OneDrive or SharePoint?

This choice matters more for a shared mailbox than for a personal one. Microsoft documents that the OneDrive for Business connector can only work on the account used to create the connection and on data owned by that account. So "save to OneDrive" really means "save to the OneDrive of whoever built the flow". A SharePoint document library belongs to the team. Use OneDrive only if one person really owns the documents.

Limits and caveats Microsoft documents

We go into more detail on the trade-offs in Inbox2Drive vs Power Automate (in Spanish).

Side-by-side comparison

Outlook rulesPower AutomateInbox2Drive
Saves attachments to the cloudNoYes, with a flow you buildYes
Destinationsn/aOneDrive for Business, SharePoint, Google Drive and othersGoogle Drive, OneDrive, Dropbox
Knows what the document isNoNo, only conditions you writeYes, AI classification
Folders by type / date / sendern/aOnly with expressions you buildBuilt in
Several mailboxesRule per mailboxOne flow per mailboxSeveral mailboxes in one account (by plan)
Size limits to known/aTrigger skips emails >50 MB; Google Drive connector 10 MBPlan limits on emails/documents per month
Who maintains itMailbox usersFlow owners and their connectionsInbox2Drive; you set folder rules
CostIncludedStandard connectors (no premium)Free plan; paid from 19 €/month

A rule of thumb: if attachments must also start approvals or Teams posts inside Microsoft 365, and someone on the team is happy to own the flows, Power Automate is a solid choice. If what you need is every invoice and contract filed by type, across one or more mailboxes, without maintaining flows, a tool that reads the documents saves the most time.

Set up a shared mailbox with Inbox2Drive

Because a shared mailbox has no password of its own, Inbox2Drive connects through an account that already has access to it. How you do that depends on your tenant's policies. If you're not sure, email us first.

  1. Create a free account

    Sign up on the free plan. No credit card needed.

  2. Email us about your shared mailbox

    Write to marketing@inbox2drive.com with the type of mailbox (Microsoft 365 shared mailbox, or a shared address on another provider) and where the files should go. We'll reply by email with the right way to connect it for your setup.

  3. Forward the shared mailbox to a mailbox you connect

    Inbox2Drive signs in to a user's own mailbox with Microsoft sign-in (OAuth2); it does not open Microsoft 365 shared mailboxes directly. Open the shared mailbox in Outlook on the web and create a rule that forwards messages with attachments to a user mailbox inside your organisation, then connect that mailbox. Your tenant's forwarding policies apply. Your password isn't stored when you use Microsoft sign-in. Some company tenants need an admin to approve the app the first time. If the shared address is on your own domain with a normal mailbox password, see the IMAP attachments guide.

  4. Choose the destination and folder rules

    Pick Google Drive, OneDrive or Dropbox, then organise by document type, date, sender or a combination. For example, Invoices/2026/03-March/ for invoices and Contracts/Supplier name/ for contracts.

  5. Let it run, then import your history

    New attachments are classified and filed automatically. Run the history import to file what is already in the mailbox.

Teams that do bookkeeping for several clients, each with their own invoices@ address, can see the setup for bookkeepers and accountants. If you're saving from individual Outlook mailboxes, read Outlook attachments to OneDrive or Outlook attachments to Google Drive.

Plans (as listed on the home page)

PlanPriceEmail accountsEmails / monthDocuments / month
Free0 €12010
Starter19 €/month2500200
Business39 €/month52,0001,000
Pro79 €/month1010,0005,000

Check inbox2drive.com for current plan details.

Start free

FAQ

Can an Outlook rule save shared mailbox attachments to OneDrive?

No. Microsoft's documentation for Outlook rules lists actions such as moving, deleting, flagging, changing importance and forwarding messages. None of them uploads attachments to OneDrive, SharePoint or Google Drive. You need a flow, an automation tool or a dedicated service.

What permission does Power Automate need on a shared mailbox?

The account behind the flow's Office 365 Outlook connection must be able to access the shared mailbox; Microsoft's troubleshooting tells you to verify that the account is a member of it. In Exchange Online, Full Access is the permission that lets a user open the mailbox and read its messages. Microsoft notes that new permissions can take about two hours to replicate to Power Automate.

Should I save shared mailbox attachments to OneDrive or SharePoint?

For a team, SharePoint is usually the better target. Microsoft documents that the OneDrive for Business connector only works on data owned by the account used for the connection, so files would land in one person's OneDrive. A SharePoint document library belongs to the team and survives staff changes.

Can Power Automate save shared mailbox attachments to Google Drive?

Yes. The Google Drive connector is Standard in Power Automate and has a Create file (V2) action. Microsoft lists a maximum content length of 10 MB for that connector, so larger attachments, such as scanned contracts, may fail.

What happens to the flow if the person who built it leaves?

According to Microsoft, a shared flow keeps running if it still has an active owner, but actions that use connections belonging to the person who left may fail until someone updates the credentials. Adding co-owners and using a service account for connections reduces that risk.

Can Inbox2Drive watch a shared mailbox?

Not directly. Inbox2Drive reads the mailbox of the Microsoft account you sign in with, and Exchange Online no longer accepts password-based IMAP, so a Microsoft 365 shared mailbox can't be connected on its own. The workaround is a rule in the shared mailbox that forwards messages with attachments to a user mailbox you connect. If you'd rather keep everything inside Microsoft 365, the Power Automate shared mailbox trigger described above is the direct route. Questions: marketing@inbox2drive.com.

Sources

Checked in November 2026. Microsoft updates connectors often; check the linked pages before you build.

Stop dragging attachments out of the shared inbox

Invoices, receipts and contracts filed by type in Google Drive, OneDrive or Dropbox, without a flow to maintain. Questions about your shared mailbox? Write to marketing@inbox2drive.com and we'll reply by email.

Create a free account

No credit card required