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 / Http request Azure AD ...
Power Automate
Unanswered

Http request Azure AD - Change password

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi I need to create a flow that changes passwords of Azure AD users, th input could be the email or the samaccount name.

Im getting several errors such as Invalid response or invalid headers (when i put them)

I used this reference for the request

https://docs.microsoft.com/en-us/graph/api/passwordauthenticationmethod-resetpassword?view=graph-rest-beta&tabs=http#request-headers

 

Can someone help me and tell me what im doing wrong... Al tries have been with Email input

 

rubengonzalez_0-1618593672401.png

 

Categories:
I have the same question (0)
  • manuelstgomes Profile Picture
    6,625 on at

    Hi @Anonymous 

     

    You're missing the Bearer token in the headers.

    Name Description
    Authorization Bearer {token}. Required.
    Content-type application/json. Required.

    Can you please check if and let me know if you have any questions?

     

    Cheers
    Manuel

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    "Invalid request header name" error is coming up

    rubengonzalez_1-1618947342723.png

    rubengonzalez_2-1618947368035.png

    rubengonzalez_3-1618947409528.png

    Tried with value and with no value, and same response

     

     

     

     

  • manuelstgomes Profile Picture
    6,625 on at

    Hi @Anonymous 

     

    Can you show me the Flow and how you're building the header. There's something wrong with the call.

     

    Cheers
    Manuel

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

     

    Sure! This is it!

    rubengonzalez_0-1619101020462.png

    I also tried putting on the values of the Headers the description, and I got the same result!

     

    Thank You

    R.G.

  • manuelstgomes Profile Picture
    6,625 on at

    Hi @Anonymous 

     

    But there's no values. Where are you getting your Bearer token and are you inserting it in the call? also the Content Type should be "application/json"

     

    Cheers
    Manuel

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I dont have a bareer token, how do i get it? Im on azure ad portal already

  • manuelstgomes Profile Picture
    6,625 on at

    Hi @Anonymous 

     

    That's your issue. You can check how to use them here:

    https://docs.microsoft.com/en-us/graph/auth/auth-concepts

     

    Cheers
    Manuel

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • MasterAD Profile Picture
    2 on at

    Hi,

    I have the same issue. I use the Bearer Token and get the following error:

    MasterAD_0-1670940423786.png

    Using app registration with HTTP of Power Automate. 

    MasterAD_1-1670940582719.png

    I use Graph Explorer and it work but not with Power Automate ☹️.
     Graph Explorer | Try Microsoft Graph APIs - Microsoft Graph

    What am I missing? 


     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    From where can I get the Password method id?

     

  • RADical Profile Picture
    164 on at

    @MasterAD Did you ever figure this out? I'm having the same issue. I'm able to successfully reset users' passwords using Graph Explorer, but doesn't work in HTTP connector with same syntax.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard