SharePoint 2019 Hybrid + O365 Graph API

%3CLINGO-SUB%20id%3D%22lingo-sub-1860955%22%20slang%3D%22en-US%22%3ESharePoint%202019%20Hybrid%20%2B%20O365%20Graph%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1860955%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20a%20SharePoint%202019%20Hybrid%20configuration%2C%20is%20it%20possible%20to%20access%20the%20O365%20Graph%20API%20in%20a%20on-premise%20SharePoint%202019%20hosted%20Add-In%3F%20If%20so%2C%20how%20do%20you%20access%20the%20security%20tokens%20needed%20for%20graph%20requests%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECurrently%2C%20I%20create%20SPA%20JavaScript%20applications%20in%20SharePoint%202013%20(Hosted%20Add-In)%20and%20leverage%20the%20REST%20API%20to%20get%20data%20from%20various%20lists%2Flibrary's.%20I'm%20familiar%20with%20the%20JSOM%2FREST%20API's%20in%20SharePoint%202013.%20However%20my%20company%20is%20considering%20upgrading%20to%20SharePoint%202019%20On-Premise.%20The%20company%20also%20already%20has%20O365%20Enterprise%20subscription%20for%20all%20users%20(primarily%20for%20Outlook%2FTeams).%20But%20I%20am%20thinking%20to%20join%20the%20new%202019%20environment%20with%20the%20existing%20O365%20to%20make%20it%20hybrid.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20need%20to%20figure%20out%20is%20how%20to%20make%20on-premise%20add-ins%20that%20can%20connect%20to%20the%20O365%20users%20via%20Graph%20API%20in%20order%20to%20access%20e-mail%2Fcalendar%2Fetc.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

In a SharePoint 2019 Hybrid configuration, is it possible to access the O365 Graph API in a on-premise SharePoint 2019 hosted Add-In? If so, how do you access the security tokens needed for graph requests?

 

Currently, I create SPA JavaScript applications in SharePoint 2013 (Hosted Add-In) and leverage the REST API to get data from various lists/library's. I'm familiar with the JSOM/REST API's in SharePoint 2013. However my company is considering upgrading to SharePoint 2019 On-Premise. The company also already has O365 Enterprise subscription for all users (primarily for Outlook/Teams). But I am thinking to join the new 2019 environment with the existing O365 to make it hybrid.

 

What I need to figure out is how to make on-premise add-ins that can connect to the O365 users via Graph API in order to access e-mail/calendar/etc. 

0 Replies