39
Views
1
Comments
Solved
Rest API
Application Type
Reactive

Hello ,
I followed this post, and it works fine now, but now I want to get the logged in user details using the token. How can I achieve this can anyone please help me to achieve this.

I'm wanting to use this API, but I don't understand how to use.

Thanks,

Rakhi

2021-10-09 07-57-44
Stefan Weber
 
MVP
Solution

Hi,

there are two ways to query Graph API on behalf of a user.

The first is to use the Microsoft Login Connector Forge component and use the token to query Graph. See this tutorial here https://medium.com/@stefan-weber/getting-started-with-outsystems-and-microsoft-graph-123006356d41

I recommend the above to get started, especially if you havent dealt with OpenID Connect/OAuth and Authorization Code Flow before.

More advanced is to link an Azure AD Token with your OutSystems account and use that token query Graph API. See here https://medium.com/@stefan-weber/acquire-and-link-multiple-oauth-tokens-to-outsystems-users-for-delegated-access-b2ba74ca78a0

Best

Stefan

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.