A Microsoft file hosting and synchronization service.
That message comes from your organization's settings, not from anything on your PC. Microsoft's troubleshooting article says it generally means external sharing is turned off for your SharePoint or OneDrive. Since it worked before, an admin has most likely tightened the sharing policy recently.
You can't change this yourself as a regular user. Send these steps to your Microsoft 365 or SharePoint admin:
- Sign in to the Microsoft 365 admin center as a Global or SharePoint admin, and open the SharePoint admin center.
- Go to Policies > Sharing.
- Under External sharing, check the level for OneDrive. To share with people outside the organization, it needs to be New and existing guests or Anyone, not "Only people in your organization".
- Save, and try sharing again.
If the admin wants to keep sharing restricted on purpose, they can tell you which external people or domains are allowed instead.
Are the people you're sharing with outside your organization, or are they colleagues with company accounts?
If sharing works again after the admin checks the setting, please consider accepting it as the answer. If the setting is already on and you still get the error, let me know and I'll be happy to keep helping.
Reference: