How to Fix Missing AuthKey and Resid Parameters in OneDrive Embed Code
Question details
Users are unable to successfully embed OneDrive Excel files because newly generated embed links only provide a shortened 1drv.ms URL, lacking the traditional AuthKey and resid parameters required by certain content management systems.
- Product
- OneDrive / Microsoft Excel
- Device & OS
- not provided
- Scenario
- Generating an embed code for a OneDrive Excel file to integrate it into web platforms such as WordPress.com.
- Observed behavior
- The generated embed link is missing the AuthKey and resid parameters. Additionally, when inserting the iframe code into WordPress.com, the code is stripped or fails to display the spreadsheet.
Check your website platform's security policies regarding custom HTML, as platforms like WordPress.com often restrict or automatically strip custom iframe tags regardless of the URL structure.
Manually Append Query Parameters to the Shortened URL
If your specific embedding workflow strictly requires the older parameter format, you can manually construct the URL inside the iframe source.
Microsoft has updated how OneDrive generates sharing and embed links, transitioning to cleaner, shortened 1drv.ms URLs. If your CMS specifically requires the older format to parse the embed properly, you can attempt a manual workaround by appending the parameters.
Obtain the standard embed code from OneDrive to get your new shortened 1drv.ms URL.
Open a text editor like Notepad and paste the iframe code provided by OneDrive.
Find the 'src' attribute within the iframe tag, which contains the shortened link.
Manually append your known '?resid=...' and '&authkey=...' parameters to the end of the shortened URL inside the src attribute.
Copy the modified iframe code and paste it into your website's custom HTML block.
Generate Stable Spreadsheet Embed Links with WPS Office
If OneDrive embed links are restricted by your website builder or no longer working for your workflow, you can use WPS Office and WPS Cloud to generate highly compatible sharing and embed links for your spreadsheets.
- 1. Upload to WPS Cloud: Open WPS Office on your device and upload your spreadsheet file to WPS Cloud.
- 2. Generate a Share Link: Click the 'Share' button in the top right corner of the spreadsheet window.
- 3. Configure Permissions: Set the link permission to 'Anyone with the link can view' so your website visitors can access the file.
- 4. Embed into Your Website: Copy the generated web link and format it into an iframe block, or use it directly with your CMS's supported embed widgets.

Frequently Asked Questions
Why did Microsoft remove the AuthKey and resid parameters from OneDrive links?
Microsoft periodically updates its sharing architecture to improve security and simplify link management. The transition to shortened 1drv.ms URLs encapsulates the required access tokens within the backend, rather than exposing them directly in the URL query string.
Why does my OneDrive iframe code disappear when I save my WordPress post?
WordPress.com restricts custom HTML and iframe tags to prevent malicious scripts from running. Unless you are on an eligible business plan or using a self-hosted WordPress.org environment, the platform will automatically strip unauthorized iframe codes regardless of the link format.
Can I get the old OneDrive embed format back?
Currently, there is no official toggle in OneDrive to revert to the older embed code format. You must either manually reconstruct the URL if you have the old parameter keys or use a supported third-party plugin or embed block specifically designed for OneDrive.




