
Praveen_Veracode (Community Member) asked a question.
Hi,
I am testing to update elearning-manager details using xml api. But i m getting below error.
Please let me know what is wrong. Thanks
Api:veracode-python-hmac-example localadmin$ http --auth-type=veracode_hmac "https://analysiscenter.veracode.com/api/3.0/updateuser.do" "username==test100@xxxxxxxx.com" "elearning_manager==test-manager"
Output:
HTTP/1.1 200 OK
Cache-Control: no-cache, no-store
Content-Encoding: gzip
Content-Length: 97
Content-Type: text/xml
Date: Tue, 01 Dec 2020 16:57:13 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Server:
Set-Cookie: JSESSIONID=66E87FE733434C6388FADC202C69F133; Domain=.analysiscenter.veracode.com; Path=/; Secure; HttpOnly
<?xml version="1.0" encoding="UTF-8"?>
<error>Invalid eLearning Manager.</error>
.png)
Hello @Praveen_Veracode (Community Member) ,
After reading your post and the error given, it sounds like Test Manager segment from "elearning_manager==test-manager" needs to be updated from the elearning_manager section from the chart in this Help Center article about updateuser.do: https://help.veracode.com/r/r_updateuser
There could be three reasons that it could be going into an error status:
If the information we’ve provided you has helped resolve your challenge (or answered your question), we would appreciate it if you could mark the response that was helpful with “Select as Best”. This will help other Community members who come across your question as a similar challenge they might be facing and your best answer will help them find the right solution as well.
Jason
Community Support Engineer
Thanks for the response @Jason M., Veracode Support (Veracode) , but here i was doing 2 things.
1: First creating new user in the veracode account.
2: After creating the user, updating user in to the respective manager group.
Here, I am able to update elearning_track and curriculum roles, but not able to add the user in to that manager group.
Please find below api response.
veracode-python-hmac-example localadmin$ http --auth-type=veracode_hmac "https://analysiscenter.veracode.com/api/3.0/updateuser.do" "username==test100@xxxxxxxx.com" "phone==111-222-3333" "elearning_manager==test-manager"
HTTP/1.1 200 OK
Cache-Control: no-cache, no-store
Content-Encoding: gzip
Content-Length: 433
Content-Type: text/xml
Date: Tue, 01 Dec 2020 16:53:46 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Server:
Set-Cookie: JSESSIONID=492FE77761CF903C5BA2C6F46EEC90FF; Domain=.analysiscenter.veracode.com; Path=/; Secure; HttpOnly
<?xml version="1.0" encoding="UTF-8"?>
<userinfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://analysiscenter.veracode.com/schema/userinfo/3.0" xsi:schemaLocation="https://analysiscenter.veracode.com/schema/userinfo/3.0 https://analysiscenter.veracode.com/resource/3.0/userinfo.xsd" userinfo_version="3.0" username="test100@squaretrade.com"><login_account first_name="test100" last_name="user100" login_account_type="user" email_address="test100@xxxxxxxxxx.com" phone="111-222-3333" login_enabled="true" requires_token="false" teams="QA" roles="Creator,eLearning,Submitter,Any Scan" is_elearning_manager="false" elearning_manager="No Manager" elearning_track="eLearning" elearning_curriculum="QA" keep_elearning_active="true" login_account_id="513910"/>
</userinfo
Always getting response: elearning_manager="No Manager"
@Praveen_Veracode (Community Member) ,
I would recommend you contact our technical support team. Here's how you can log a case:
They will be able to look at the API response and assist you.
Jason
Community Support Engineer