How do I stop other accounts from sharing files to me in OneDrive

Ville 130 Reputation points
2025-12-11T20:31:31.5966667+00:00

Hi,

Yesterday I got notification in OneDrive app that someone shared a file with me, which was a PDF file that felt like malware or a virus (I didn't open the file). I reported the file, the account got banned but today I started to get more file share spam from multiple accounts. I'm wondering if I can somehow disable receiving files from other people on OneDrive temporarily because this is really annoying.

Thanks in advance,

  • Ville
Microsoft 365 and Office | OneDrive | For home | Windows

Answer accepted by question author
Anonymous
2025-12-11T21:10:30.7766667+00:00

Hi Ville,

Thanks for reaching out. I understand how frustrating it is to receive unwanted or suspicious file shares. You did the right thing by not opening the file and reporting it. While OneDrive doesn’t have a single option to block all incoming shares, there are steps you can take to reduce the impact.

First, you can turn off share notifications in OneDrive settings. This won’t stop people from sharing files, but it will prevent those alerts from popping up and distracting you.

Second, remove any unwanted shared files from your “Shared with me” section and use the “Report abuse” option when you do. This helps keep your view clean and signals Microsoft to take action against spammers.

Third, block the sender’s email address in Outlook or your Microsoft account. This will stop email notifications from those accounts and reduce spam exposure.

Last, if you’re using a work or school account, ask your admin to review external sharing settings in the Microsoft 365 Admin Center. They can restrict or disable external sharing entirely, which is the most effective solution in organizational environments.

I hope you find this information helpful. Please let me know if you have any further questions If the answer is helpful, please click "Accept Answer".

Regards,

Carlo

Was this answer helpful?


10 additional answers

Sort by: Most helpful
  1. Lederhosen 5 Reputation points
    2026-03-07T07:58:10.14+00:00

    I also just learned this today.

    There is currently no way to prevent unknown accounts from sharing unsolicited files directly into your OneDrive.

    The available mitigation of manual spam filtering belongs in a different century.

    For a cloud storage service that potentially handles personal or sensitive data, the absence of basic security controls like this is very very surprising.

    I will immediately cancel my OneDrive subscription - and I urge everyone else to stop using it until a good solution is in place.

    Cheers

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments

  2. Brian Walsh 5 Reputation points
    2026-03-19T00:30:22.54+00:00

    I just discovered I have over 100 porn .pdf documents shared to my OneDrive that I never asked for and don't want. There is no option that allows me to delete them. I can "report a concern" but I have to do that with each file individually. There is no option allowing me to check all of them and report them. I am very upset and frustrated by this. I will be contacting a lawyer due to the callous disregard by Microsoft allowing the intentional infliction of emotional distress upon me. There is no reason I shouldn't be allowed to delete things I don't want shared with me.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  3. jens-erik agerbo 20 Reputation points
    2026-03-11T11:44:27.5533333+00:00

    If MS dont fix it i think I wil skip 365

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  4. Ron Barker 2,325 Reputation points
    2026-02-15T10:53:06.16+00:00

    Hi, the problem is that there is no possible way to get rid of shared files, Microsoft does not provide any way to do so it!!!

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.