Office Web Add-in limits and considerations with respect to files

Hari Mohan 1 Reputation point
2021-08-30T14:45:56.917+00:00

Hello there. I had some questions regarding office web add-ins:

  1. Is it possible to access user's local file systems through these add-ins in any way ?
  2. Are there parts of web API closed off ?
  3. Is cookie based authentication supported if OAuth isn't implemented at server ?
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
914 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Sean Laberee 81 Reputation points Microsoft Employee
    2021-08-30T16:49:40.45+00:00

    Hi HariMohan-7655,

    1. Our goal with Office Add-ins is to write a model that will work across devices and browsers as such direct access to the file system is not available. Consider using the Microsoft Graph to access the users OneDrive as a cloud-friendly way of potentially achieving similar results.
    2. I'm not sure what you mean by Web API in this case. Can you elaborate?
    3. A lot of cookie-based authentication works because our platform is based on browser IFrames and native WebView controls. There are some known limitations that affect 3rd party cookies that you may need to be aware of - https://learn.microsoft.com/en-us/office/dev/add-ins/develop/itp-and-third-party-cookies

  2. Hari Mohan 1 Reputation point
    2021-09-01T15:29:55.747+00:00

    I would also like to know if on-prem solutions are possible ? In case it isn't, what is the recommended way forward for hosting these add-ons ?

    0 comments No comments

  3. Chris Drake 96 Reputation points
    2021-09-10T13:02:59.863+00:00

    Your Add-in is able to get oauth and other tokens (with or without prompting users for logins), and can then use them for most of the Microsoft API's, which includes saving arbitrary stuff inside user Roaming Profiles, as well as use EWS and Graph - which probably grants you access to OneDrive files that way.

    0 comments No comments