Word Web Addin for Office 2016 RRS feed

  • Question

  • Hi all

    What is the best method to get SharePoint list items from Office Web Addin using the credentials of the logon user?

    We have migrated to Office 365, I am not sure whether i must authenticate on AD or Office 365, the Office Addin App will be deployed on SharePoint on Premise

    I have tried rest services but I am not sure of how to pass the user token, for authentication.

       function GetSharePointListItems() {
                url: "weburl/_api/web/lists/getbytitle('listname')/Items?$select=Title,ParagraphText&$filter=ParagraphText isnotnull ",
                type: "GET",
                Authorization: {"Bearer " + accessToken},
                 headers: { "accept": "application/json;odata=verbose" },
                success: function (data) {
                    if (data.d.results) {
                error: function (xhr) {
                    alert(xhr.status + ': ' + xhr.statusText);


    any ides

    • Edited by tapsb Thursday, August 17, 2017 3:31 PM
    Thursday, August 17, 2017 2:59 PM

All replies