logo
search
OneDrive File Issues

How to Fix Missing AuthKey and Resid Parameters in OneDrive Embed Code

Maira MehtabMaira Mehtab Sep 22, 2026 868 views

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.
Before you start

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.

Solution 1Recommended

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.

1
Generate the new embed code

Obtain the standard embed code from OneDrive to get your new shortened 1drv.ms URL.

2
Prepare the code in a text editor

Open a text editor like Notepad and paste the iframe code provided by OneDrive.

3
Locate the source attribute

Find the 'src' attribute within the iframe tag, which contains the shortened link.

4
Append the missing parameters

Manually append your known '?resid=...' and '&authkey=...' parameters to the end of the shortened URL inside the src attribute.

5
Embed the modified code

Copy the modified iframe code and paste it into your website's custom HTML block.

WordPress iframe restrictions: WordPress.com heavily restricts iframe usage. If the code disappears after saving, it is likely being stripped by WordPress security rules rather than failing due to the OneDrive URL structure alone.
Easily Embed Spreadsheets Online

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. 1. Upload to WPS Cloud: Open WPS Office on your device and upload your spreadsheet file to WPS Cloud.
  2. 2. Generate a Share Link: Click the 'Share' button in the top right corner of the spreadsheet window.
  3. 3. Configure Permissions: Set the link permission to 'Anyone with the link can view' so your website visitors can access the file.
  4. 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.
Generate reliable web links for embedding and sharing your spreadsheets.Fully compatible with Microsoft Excel (.xlsx, .xls) file formats.Free, lightweight, and features an intuitive interface for quick document management.
microsoft office alternative - wps office

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.