Skip to main content

 

Planview Customer Success Center

Create a User for a Resource (API)

You'll need the resource ID for the user (this examples uses the resource ID returned from Create a New Entity. Then, as described in Create a New Entity, you'll find the ID for the user entity (23) and required fields, as shown in the example below. The user type, which is a required field, can be found here.

This user has been designated an Admin, and is also added each of the Admin teams.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services" xmlns:xsd="http://objects.services/xsd">

   <soapenv:Header/>

   <soapenv:Body>

      <ser:insertEntity>

         <ser:sessionId>F0C6EDD44B270B1F3DD0F1492A2A1585</ser:sessionId>

         <ser:entityTypeId>23</ser:entityTypeId>

         <ser:valuePairs>

            <xsd:elementValue>812737223</xsd:elementValue>

            <xsd:id>2315</xsd:id>           <!-- Resource Id-->

         </ser:valuePairs>

         <ser:valuePairs>

            <xsd:elementValue>JacobLadder</xsd:elementValue>

            <xsd:id>2303</xsd:id>            <!--Login-->

         </ser:valuePairs>

    <ser:valuePairs>

            <xsd:elementValue>JacobLadder_pwd</xsd:elementValue>

            <xsd:id>2330</xsd:id>            <!--Password-->

         </ser:valuePairs>

         <ser:valuePairs>

            <xsd:elementValue>1</xsd:elementValue>

            <xsd:id>2304</xsd:id>             <!--User Type-->

         </ser:valuePairs>

         <ser:valuePairs>

            <xsd:elementValue>true</xsd:elementValue>

            <xsd:id>2301</xsd:id>             <!--Active?-->

         </ser:valuePairs>

         <ser:valuePairs>

            <xsd:elementValue>true</xsd:elementValue>

            <xsd:id>2302</xsd:id>             <!--Admin?-->

         </ser:valuePairs>

      </ser:insertEntity>

   </soapenv:Body>

</soapenv:Envelope>

Get the Innotas userID for the user

(same as get attributes from any entity)

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services" xmlns:xsd="http://objects.services/xsd">

   <soapenv:Header/>

   <soapenv:Body>

      <ser:findEntity>

         <ser:sessionId>F0C6EDD44B270B1F3DD0F1492A2A1585</ser:sessionId>

         <ser:entityTypeId>23</ser:entityTypeId>

         <!--First search condition – login(2303)  should be 'v3new6 '-->

         <ser:searchValuePairs>          

            <xsd:elementValue>v3new6 </xsd:elementValue>

            <xsd:id>2303</xsd:id>

         </ser:searchValuePairs>

         <!-The list attributes to be fetched. Only method ID (2315) is fetched in this case-->         

         <ser:fieldsRequest>2315</ser:fieldsRequest>

      </ser:findEntity>

   </soapenv:Body>

</soapenv:Envelope>