添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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:

Oskarkuus_0-1652093002578.png

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:

Oskarkuus_1-1652093076309.png

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:

  • Delegated and application permissions
  • Access tokens

    Ellis

    Re: Azure application - delegated permission to graph api - how to get token with HTTP connector?

    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.

    Subscribe to

    Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.

  •