question

HariMohan-7655 avatar image
0 Votes"
HariMohan-7655 asked ChrisDrake-5134 answered

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

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 ?


office-js-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @HariMohan-7655,
Welcome to Q&A forum!
SInce this issue seems to be more related to Office Add-ins and API, I have removed the tag office-deployment that focuses on general issues about deployment of Office desktop products. Thanks for your understanding!
Hope the issue could be resolved as soon as possible.

0 Votes 0 ·
SeanLaberee-1767 avatar image
0 Votes"
SeanLaberee-1767 answered HariMohan-7655 commented

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://docs.microsoft.com/en-us/office/dev/add-ins/develop/itp-and-third-party-cookies


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for your response.

In case of Web API question, I mean uses of File System Access API (https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API)

To elaborate on the third point, we want to be able to use third party APIs via Office web add-in. Currently any attempt I make using standard modules like fetch or axios results in cookies being hidden out of sight after login. So any further interaction is not possible without the cookies.

0 Votes 0 ·
HariMohan-7655 avatar image
0 Votes"
HariMohan-7655 answered

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 ?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ChrisDrake-5134 avatar image
0 Votes"
ChrisDrake-5134 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.