How to Fix Office Lens Creating Shared PDFs in OneDrive on iOS
Question details
Users need to stop Office Lens from automatically creating public sharing links when saving PDFs to a personal OneDrive account, which causes private files to appear in the Shared section.

- Product
- Office Lens, OneDrive
- Device & OS
- iOS (iPhone or iPad)
- Scenario
- Scanning documents and saving them as PDFs to OneDrive using the Office Lens app.
- Observed behavior
- PDFs uploaded via Office Lens automatically generate a sharing link and appear in the Shared section of OneDrive, even if the parent destination folder is strictly private. Saving scans as images instead of PDFs does not trigger this issue.
Ensure you are logged into your OneDrive account on a web browser or have the latest version of the OneDrive mobile app installed to manage file permissions.
Remove the Sharing Link via OneDrive Web
Access your OneDrive account through a web browser to manually revoke access and delete the automatically generated sharing links.
Since Office Lens creates a separate link for every PDF file it uploads, you will need to remove the sharing links individually to restore the files' privacy status.
Navigate to OneDrive.com in your web browser and sign in with the Microsoft account associated with your Office Lens app.
Find the PDF file inside your Office Lens folder. Click the circular checkbox in the upper-right corner of the file icon to select it.
Click the 'Info' icon (a lowercase 'i' inside a circle) located in the top right corner of the screen to open the details pane.
In the information pane, select 'Manage access' to view all active sharing links for that file.
Find the generated sharing link, click the 'More options' (three dots) icon next to it, and select 'Remove link'. This will revoke the link and remove the file from your Shared section.

Remove the Sharing Link via OneDrive Mobile App
Use your iPhone or iPad's OneDrive application to quickly manage file access and remove unwanted sharing links.
Scan Documents Safely with WPS Office Built-in Scanner
Avoid unwanted file sharing and OneDrive sync bugs by using the built-in document scanner in WPS Office. Easily capture, convert, and save documents securely as PDFs directly to your local device or encrypted cloud.
- 1. Open WPS Office: Launch the free WPS Office app on your iPhone or iPad.
- 2. Access the Scanner: Tap the '+' (Add) button at the bottom of the screen and select 'Scanner'.
- 3. Capture the Document: Take a photo of your physical document. The app will automatically detect edges and enhance the text.
- 4. Save as PDF: Tap 'Export to PDF' and choose a secure, private location on your device or cloud to save the file.

Frequently Asked Questions
Why does Office Lens automatically create sharing links for my PDFs?
This is a known behavior in the iOS version of Office Lens. When saving scans specifically as PDFs to personal OneDrive accounts, the app automatically generates an embedding link. Saving the scan as an image avoids this automatic link creation.
Can I permanently prevent Office Lens from sharing my PDFs automatically?
Currently, there is no built-in setting in the Office Lens iOS app to disable this automatic link generation for PDFs. You must either manually remove the sharing links after saving, or choose to save your scans as images instead.
Are my files public if they appear in the Shared section?
When a sharing link is generated, the file appears in your Shared section. While the file isn't publicly indexed on search engines, anyone who happens to obtain the exact, unguessable link could potentially view the file until you manually remove the link via the 'Manage access' menu.




