Quantcast
Viewing all articles
Browse latest Browse all 3686

Microsoft Graph Rest API for Excel (Office 365): How to gain permanent access as a Daemon?

I would like to write a daemon (probably in Node.js) that is able to add rows to arbitrary users Office 365 Excel Workbooks over a long period of time. I have been studying the Microsoft Graph documentation and have a pretty good idea of how to add an application and let users give that application access to their files.My problem is that from what I read in the Graph documentation (https://learn.microsoft.com/en-us/graph/auth-v2-user?tabs=http) access always expires after max 90 days.

On the other hand there is a service called sheet2api (https://sheet2api.com/) that seems to gain constant access. Does anyone know how they do it? I would like to achieve basically the same kind of access for different users.

Thanks a lot!

So far I wrote an SPA in React requesting access from the user through a Azure application. Then I am able to extract a request token which I could give to my daemon, which is then able to access the graph on behalf of the user. But as I said those refresh tokens expire.


Viewing all articles
Browse latest Browse all 3686

Trending Articles