I have a flow.
i have a app in azure with delegated permissions.
how do i get the correct access token with the http connector.
i have this:
i get this error:
{"error":"invalid_request","error_description":"AADSTS900144: The request body must contain the following parameter: 'grant_type'.\r\nTrace I
this is the http connector:
i have tried without json format in the body.
i have tried without the " around the variables.
every time i run the flow i always get the same error complaining on grant_type
all i have read is that grant type must be set to password and it is set to passoword.
but still i get the error.
May be this may help Authentication and authorization basics for Microsoft Graph - Microsoft Graph | Microsoft Docs covers:
Ellis
But that uses Application permissions, correct?
Not delegated permissions?
As i understand it since i am calling a API that do not support application permission i first need to get an access token and then use that token to call the api using the application delegated permission.
Getting that token is what i am trying to do in my first post.
Hi @Oskarkuus ,
I used this post : https://www.lee-ford.co.uk/using-flow-with-graph-api/ to guide me.
This is a screen shot from a flow I created that uses Graph API to get Get MS 365 License Counts
Hope this helps.
Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.
WarrenBelz
146,518
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,708
Most Valuable Professional