Generating a link to embed an OneDrive editable excel file without making it public

Bruno Michetti 0 Reputation points
2024-04-08T17:46:27.44+00:00

Hello everyone,
I have an Excel file in my OneDrive account. I'm also working on a web page.

I would like to embed that file in my web page using an iframe. I want to make it editable but not public.

That means: I need to generate a link to embed it using an iframe, but I don't want anybody else to be able to view/edit the excel file unless I share the file with them.

I tried with the /createLink endpoint of the Microsoft Graph API, but this creates a public link. Anyone with the link can view/edit the file and I don't want that.

Then I tried with the /preview endpoint of the Microsoft Graph API, but it doesn't work, the error says: "API not found".

Why is that? Is there another way to create an embed link to edit the excel file without making it public?

Thanks in advance

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,002 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.