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!

2 REPLIES 2
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!