Home

Accessing Graph API from Teams apps

%3CLINGO-SUB%20id%3D%22lingo-sub-800094%22%20slang%3D%22en-US%22%3EAccessing%20Graph%20API%20from%20Teams%20apps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-800094%22%20slang%3D%22en-US%22%3E%3CP%3EI%20need%20some%20help%20around%20accessing%20graph%20from%20Teams%20apps.%20We%20have%20some%20apps%20running%20in%20teams%20which%20are%20being%20used%20by%20our%20employees.%20The%20app%20will%20be%20providing%20functionality%20through%20graph%20API.%20Until%20now%2C%20we've%20been%20using%20client_credentials%20flow%20for%20getting%20access%20to%20graph%2C%20but%20we%20want%20to%20move%20away%20from%20this%20approach%20and%20achieve%20the%20following%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20Access%20graph%20api%20as%20the%20logged%20in%20Teams%20user%20who%20is%20running%20our%20app.%3C%2FP%3E%3CP%3E2.%20The%20users%20should%20not%20be%20asked%20for%20any%20credentials%2C%20the%20token%20should%20be%20obtained%20in%20the%20back-end%20on%20behalf%20of%20the%20logged-in%20user.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20this%20possible%20to%20achieve%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-800094%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGraph%20API%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
eynarain
Contributor

I need some help around accessing graph from Teams apps. We have some apps running in teams which are being used by our employees. The app will be providing functionality through graph API. Until now, we've been using client_credentials flow for getting access to graph, but we want to move away from this approach and achieve the following:

 

1. Access graph api as the logged in Teams user who is running our app.

2. The users should not be asked for any credentials, the token should be obtained in the back-end on behalf of the logged-in user.

 

Is this possible to achieve?

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies