Share via

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

Ville 105 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
{count} votes

Answer accepted by question author
  1. Carlo Luna 6,880 Reputation points Independent Advisor
    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


8 additional answers

Sort by: Most helpful
  1. jens-erik agerbo 5 Reputation points
    2026-03-11T11:44:27.5533333+00:00

    If MS dont fix it i think I wil skip 365

    0 comments No comments

  2. Lederhosen 0 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

    0 comments No comments

  3. Ron Barker 1,655 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!!!

    0 comments No comments

  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.