none
User identity in word add-in RRS feed

  • Question

  • Hi , I try to create word add-in and with Word add-in JavaScript API .

    Now , I need to get 2 things:

    1.Get identity of user ( let's say the user name that we have under file->Account -> belong to...)

    2.Get authorization of the word document.

    For example in outlook add-in I using the mail address and the function Office.context.mailbox.getUserIdentityTokenAsync to this things... but here I am not find anything like this in the API.

    The only thing I find that related to identity in word add-in is Authorize external services in your office add-in  but I am not really understand how to use this and what say exactly 'endpoint'..

    Also I find same issue in stack-overflow but without answer unfortunately.

    Hope someone could give me little bit information about this issue..

    Thanks!








    Tuesday, April 4, 2017 1:32 PM

All replies

  • Hi,

    For authentication, you also need a reference to the ADAL.js file in your code.


    Regards, Sjoukje

    Please remember to click 'Mark as Answer' on the post that helps you.


    Monday, April 10, 2017 7:56 AM
    Moderator
  • Thank for your reply . I understand that adal is for angular and I write my word add-in in js on VS .

    Is exist some another alternative to create office 365 authentication or something else?

    Thank you very much !

    Wednesday, May 24, 2017 12:55 PM