SOAP Request Examples - Suspend Accounts, Resume Accounts, Unlock Accounts

Document ID : KB000105879
Last Modified Date : 10/07/2018
Show Technical Document Details
Question:
What would the soap requests look like to perform a Suspend Account, Resume Account, and Unlock Account?
Answer:
Here are the example SOAP requests

Suspend Account Example

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
      <admin_id xsi:nil="true" xmlns="http://tews6/xsd/types">BIND_ID</admin_id>
      <admin_password>BIND_PWD</admin_password>
      <transaction_id>New</transaction_id>
      <submit_action>true</submit_action>
      <ModifyUserEndpointAccounts xmlns="http://tews6/xsd/task">
         <ns1:ModifyUserEndpointAccountsSearch xmlns:ns1="http://tews6/xsd/search">
            <ns1:Subject index="0">
               <ns1:UID xsi:nil="true"/>
               <ns1:UniqueName xsi:nil="true"/>
               <ns1:OID xsi:type="xsd:string">uid=testuser,ou=people,ou=im,ou=ca,o=com</ns1:OID>
               <ns1:Name xsi:nil="true"/>
            </ns1:Subject>
            <ns1:Filter xsi:nil="true"/>
         </ns1:ModifyUserEndpointAccountsSearch>
         <ModifyUserEndpointAccountsUserAccountsTab>
            <SelectedForSuspend>
               <add index="0">                                        <UserAccountName>Account=testaccount,ADSOrgUnit=test_ou,EndPoint=test_endpoint,Namespace=ActiveDirectory,Domain=im,Server=Server</UserAccountName>
                  <EndPointName>test_endpoint</EndPointName>
               </add>
            </SelectedForSuspend>
        </ModifyUserEndpointAccountsUserAccountsTab>
      </ModifyUserEndpointAccounts>
   </soapenv:Body>
</soapenv:Envelope>



Resume Account Example

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
      <admin_id xsi:nil="true" xmlns="http://tews6/xsd/types">BIND_ID</admin_id>
      <admin_password>BIND_PWD</admin_password>
      <transaction_id>New</transaction_id>
      <submit_action>true</submit_action>
      <ModifyUserEndpointAccounts xmlns="http://tews6/xsd/task">
         <ns1:ModifyUserEndpointAccountsSearch xmlns:ns1="http://tews6/xsd/search">
            <ns1:Subject index="0">
               <ns1:UID xsi:nil="true"/>
               <ns1:UniqueName xsi:nil="true"/>
               <ns1:OID xsi:type="xsd:string">uid=testuser,ou=people,ou=im,ou=ca,o=com</ns1:OID>
               <ns1:Name xsi:nil="true"/>
            </ns1:Subject>
            <ns1:Filter xsi:nil="true"/>
         </ns1:ModifyUserEndpointAccountsSearch>
         <ModifyUserEndpointAccountsUserAccountsTab>
            <SelectedForResume>
               <add index="0"><UserAccountName>Account=testaccount,ADSOrgUnit=test_ou,EndPoint=test_endpoint,Namespace=ActiveDirectory,Domain=im,Server=Server</UserAccountName>
                  <EndPointName>test_endpoint</EndPointName>
               </add>
            </SelectedForResume>
        </ModifyUserEndpointAccountsUserAccountsTab>
      </ModifyUserEndpointAccounts>
   </soapenv:Body>
</soapenv:Envelope>



Unlock Account Example

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
      <admin_id xsi:nil="true" xmlns="http://tews6/xsd/types">BIND_ID</admin_id>
      <admin_password>BIND_PWD</admi
      <transaction_id>New</transaction_id>
      <submit_action>true</submit_action>
      <ModifyUserEndpointAccounts xmlns="http://tews6/xsd/task">
         <ns1:ModifyUserEndpointAccountsSearch xmlns:ns1="http://tews6/xsd/search">
            <ns1:Subject index="0">
               <ns1:UID xsi:nil="true"/>
               <ns1:UniqueName xsi:nil="true"/>
               <ns1:OID xsi:type="xsd:string">uid=testuser,ou=people,ou=im,ou=ca,o=com</ns1:OID>
               <ns1:Name xsi:nil="true"/>
            </ns1:Subject>
            <ns1:Filter xsi:nil="true"/>
         </ns1:ModifyUserEndpointAccountsSearch>
         <ModifyUserEndpointAccountsUserAccountsTab>
            <SelectedForUnlock>
               <add index="0"><UserAccountName>Account=testaccount,ADSOrgUnit=test_ou,EndPoint=test_endpoint,Namespace=ActiveDirectory,Domain=im,Server=Server</UserAccountName>
                  <EndPointName>test_endpoint</EndPointName>
               </add>
            </SelectedForUnlock>
        </ModifyUserEndpointAccountsUserAccountsTab>
      </ModifyUserEndpointAccounts>
   </soapenv:Body>
</soapenv:Envelope>
 
Additional Information: