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

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

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

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

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (19,182)