Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 9 May 2022 10:46:12 by 1,095

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.

 

Categories:
  • Ellis Karim Profile Picture
    10,807 Super User 2025 Season 1 on 12 May 2022 at 17:58:49
    Re: Azure application - delegated permission to graph api - how to get token with HTTP connector?

    May be this may help Authentication and authorization basics for Microsoft Graph - Microsoft Graph | Microsoft Docs covers:

    • Delegated and application permissions
    • Access tokens

       

      Ellis

  • Oskarkuus Profile Picture
    1,095 on 10 May 2022 at 11:47:57
    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.

  • Ellis Karim Profile Picture
    10,807 Super User 2025 Season 1 on 09 May 2022 at 11:20:11
    Re: Azure application - delegated permission to graph api - how to get token with HTTP connector?

    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

    Snag_2df265d.png

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,518 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,708 Most Valuable Professional

Leaderboard
Loading started