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

Community site session details

Session Id : 5sXBhdMeET9L3JPKnKnCzR
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:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,428 Super User 2025 Season 2 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
    11,428 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 736 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 396 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 339

Last 30 days Overall leaderboard
Loading complete