Praveen_Veracode (Community Member) asked a question.

How to update elearning-manager details thru xml-api?

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>

 


  • 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:

    1. The user doesn't exist
    2. It isn't giving a valid first and last name
    3. The user is not configured to be an elearning manager

     

    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

    Expand Post
  • Praveen_Veracode (Community Member)

    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&#x3a;&#x2f;&#x2f;www.w3.org&#x2f;2001&#x2f;XMLSchema-instance" xmlns="https&#x3a;&#x2f;&#x2f;analysiscenter.veracode.com&#x2f;schema&#x2f;userinfo&#x2f;3.0" xsi:schemaLocation="https&#x3a;&#x2f;&#x2f;analysiscenter.veracode.com&#x2f;schema&#x2f;userinfo&#x2f;3.0 https&#x3a;&#x2f;&#x2f;analysiscenter.veracode.com&#x2f;resource&#x2f;3.0&#x2f;userinfo.xsd" userinfo_version="3.0" username="test100&#x40;squaretrade.com"><login_account first_name="test100" last_name="user100" login_account_type="user" email_address="test100&#x40;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"

    Expand Post
    • @Praveen_Veracode (Community Member)​ ,

       

      I would recommend you contact our technical support team. Here's how you can log a case:

      1. Navigate to the upper right corner of any page in the Community, click on your user avatar.
      2. Select Contact Support from the drop-down menu.

       

      They will be able to look at the API response and assist you.

       

      Jason

      Community Support Engineer

      Expand Post

Topics (1)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.