In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.

Re-activate disabled user via API

awalt
5 - Atom

Hey,

 

We deactivated a user as part of a test, and now can't re activate them

 

Does anyone have any step by step guide as to how to use the APIs to re-enable this user?

 

I have tried the PUT update user method, but keep getting 400 bad request errors.

 

Any help appreciated!

3 REPLIES 3
fmvizcaino
17 - Castor
17 - Castor

Hey @awalt ,

 

It is probably a problem related to the updatecontract field you are using. If you don`t have all the information, it will throw you a 400 error.

 

Screenshot 2023-11-24 104448.png

  • GET v3/users to retrieve the userID
  • GET v3/users/{userID} to retrieve the updatecontract body text. In Swagger, copy the response body
  • Screenshot 2023-11-24 104828.png
    • GET v3/users/{userID} + updatecontract from above changing the isActive to true.

 

Best,

Fernando Vizcaino

awalt
5 - Atom

Thank you! 

 

That worked

 

Cheers!

Mrutyunjay123
5 - Atom

how can we replicate this in Alteryx. I am using download tool and PUT method
but in input I have 2 columns URL & Body.
But in while using Put method it is not showing me Body option under "Take Query String/body from field"
How can we do this