web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Azure application - de...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 1,097

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:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,985 Super User 2026 Season 1 on at

    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.

  • Oskarkuus Profile Picture
    1,097 on at

    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
    11,985 Super User 2026 Season 1 on at

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

    • Delegated and application permissions
    • Access tokens

       

      Ellis

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard