Welcome to the Panopto Community

Please note: All new registrants to the Panopto Community Forum must be approved by a forum moderator or admin. As such, if you navigate to a feature that is members-only, you may receive an error page if your registration has not yet been approved. We apologize for any inconvenience and are approving new members as quickly as possible.

"CreateUsers" SOAP message

When we send following "CreateUsers" SOAP message, the HTTP return code is 200 and we get following SOAP response , but the response does not include uid and the user is not created.Am I setting the parameters incorrectly when using "Create User"?

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Header/>

<soap:Body xmlns:a="http://schemas.datacontract.org/2004/07/Panopto.Server.Services.PublicAPI.V40">

<CreateUsers xmlns="http://tempuri.org/">

<auth><a:Password>*****</a:Password>

<a:UserKey>API_User</a:UserKey>

</auth><users xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">

<b:Email>*****@gmail.com</b:Email>

<b:FirstName>*****</b:FirstName>

<b:LastName>******</b:LastName>

<b:UserKey>Test_User1011</b:UserKey>

</users></CreateUsers>

</soap:Body>

</soap:Envelope>


Thank you

Tagged:

Best Answer

  • Kevin BaumKevin Baum Panopto Employee
    Answer ✓

    Hi Sayaka,

    I'm not completely sure why you are getting a successful response but not creating a user, but I noticed that some of your namespaces may be off. The Email, FirstName, LastName, and UserKey values should be in the Panopto.Server.Services.PublicAPI.V40 namespace, not the Arrays namespace.

    I'm including a working sample (with data redacted) that I just used for testing and resulted in the user being properly created. In the example, you can see that the namespace used for the user properties is the same as the namespace used for the authentication properties.

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:pan="http://schemas.datacontract.org/2004/07/Panopto.Server.Services.PublicAPI.V40" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <soapenv:Header/>
      <soapenv:Body>
       <tem:CreateUsers>
         <tem:auth>
          <pan:Password>****</pan:Password>
          <pan:UserKey>****</pan:UserKey>
         </tem:auth>
         <tem:users>
          <pan:User>
            <pan:Email>********@panopto.com</pan:Email>
            <pan:FirstName>API</pan:FirstName>
            <pan:LastName>TestUser</pan:LastName>
            <pan:UserKey>Test_User1011</pan:UserKey>
          </pan:User>
         </tem:users>
       </tem:CreateUsers>
      </soapenv:Body>
    </soapenv:Envelope>
    

    I hope this helps. Please let me know if you have any other questions.

    Thanks,

    Kevin

Answers

Sign In or Register to comment.