For example,i have some users in UM,i want to change the user’s password,in Telnet i can use this script to change user “test” password from “test” to “123456”
but i don’t know how to do through the API
/tool user-manager user set [/tool user-manager user find name ="test"] password="123456"
you always can try with python API to try to get the results without any intervention of the software in the output, so we could see exactly what command you send and what is the result.
also, you will have to do that in 2 commands, 1 to get the correct ID of the entry that has to be changed and then issue set for that id you got previously.
The first request - the “print” command - needs to be accompanied with an appropriate query. In your case, the query would be
?name=test
Instead of showing us the GUI, show us the code behind it, as this is a code issue - the ID needs to be parsed out from the response, and either stored in a variable, or passed directly at the “set” command.