cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jonathancavey
Helper I
Helper I

Using HTTP to update a user in Zendesk

I am trying to pull data from office and update corresponding fields in Zendesk for users. Using a PUT HTTP request & the OAuth authorization I am running into an error:

 

"BadRequest. Http request failed as there is an error getting AD OAuth token: '*************: Invalid client secret is provided. Trace ID: ***************** Correlation ID: ********** Timestamp: 2020-04-09 14:32:22Z'."

 

Attached is the Error and a picture of the flow. We have all of the information Oauth.PNG

 

HTTPError.PNGHTTP.PNG

 

I tried using the Zendesk 'Update Item' but the user field is a read only. 

I also have admin access in Zendesk & Azure.

 

Any help is appreciated.

Thank you in advance!

 

1 ACCEPTED SOLUTION

Accepted Solutions

Thanks for the replies.. I solved by putting "/token" after my user name and the token as the password for basic oauth

View solution in original post

7 REPLIES 7
JohnAageAnderse
Memorable Member
Memorable Member

Hello @jonathancavey 

Are you sure you have to use a PUT request? I just browsed the ZenDesk documentation and they show examples with POST!

Kind regards, John

The main issues I am running into is authenticating myself through the HTTP request (POST & PUT). I have attempted all of the options available to authenticate myself. 

Hello @jonathancavey 

It does state that the secret provided is incorrect! Can you try using another tool, PowerShell for example, to send a request with the same information and see if it works? Or ask ZenDesk support for assistance.

Kind regards, John

I have used postman to call the same information and it worked.

I have also tried creating a custom connector but that is giving me authentication problems / host web address as well. 

This might not be a solution but more of a workaround.

Have you tried using the HTTP to authenticate and get a token?

You should be able to POST an authentication, get a token and use the token in your next request to update the user. 

Thanks for the replies.. I solved by putting "/token" after my user name and the token as the password for basic oauth

Alphie
Helper I
Helper I

This article goes into detail on how to make a HTTP request to detail. The piece I was missing was to convert your authentication userID/Token to base64.

Using the Zendesk API with Microsoft Power Automate – 4sysops

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (3,242)