Sharing a folder using an anonymous link on SharePoint/Teams gives permission denied

Sharing a folder using an anonymous link on SharePoint/Teams gives permission denied

πŸ”΄ Folders cannot be shared with anonymous edit links in SharePoint Online.


❗ Why It Happens

Microsoft intentionally restricts anonymous edit access for folders in SharePoint for security and data loss prevention reasons. Allowing anonymous users to edit entire folders (which could include nested files/folders) would bypass many controls (versioning, retention, classification, etc.).

  • You can share folders with anonymous view links.

  • You cannot share folders with anonymous edit links β€” users must be authenticated.


βœ… What You Can Do Instead

πŸ”Ή Option 1: Share the Folder with "Specific People"

Let users edit the folder by sharing with authenticated users only:

  1. Go to the folder in SharePoint.

  2. Click Share.

  3. Choose "Specific people".

  4. Check "Allow editing".

  5. Enter Microsoft 365 email addresses (external or internal).

  6. Share the link.

This works and allows full folder editing, but requires sign-in.


πŸ”Ή Option 2: Share Individual Files with Anonymous Edit Links

If anonymous editing is a hard requirement:

  • Share individual files within the folder, not the folder itself.

  • Each file will have its own anonymous edit link.

⚠️ You may need to automate this (e.g., via Power Automate or a script) if dealing with many files.


πŸ”Ή Option 3: Use OneDrive Instead (More Flexible)

In OneDrive for Business, folder-level anonymous edit links are allowed, depending on admin settings.

  • If the content isn’t sensitive, consider moving the folder to your OneDrive and sharing it from there.

  • You can set an expiration date and password for additional control.


πŸ”’ Summary

FeatureSharePointOneDrive
Anonymous view of foldersβœ… Yesβœ… Yes
Anonymous edit of folders❌ Noβœ… Yes
Anonymous edit of filesβœ… Yesβœ… Yes