cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rubengonzalez
Regular Visitor

Http request Azure AD - Change password

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-res...

 

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

 

rubengonzalez_0-1618593672401.png

 

7 REPLIES 7
manuelstgomes
Super User
Super User

Hi @rubengonzalez 

 

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.

"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
Super User
Super User

Hi @rubengonzalez 

 

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.

 

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
Super User
Super User

Hi @rubengonzalez 

 

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.

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

manuelstgomes
Super User
Super User

Hi @rubengonzalez 

 

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.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Users online (1,729)