CA Service Management

  • 1.  find inactive users from wsdl service catalog

    Posted Jul 28, 2017 02:54 PM

    I would like to know how to use the wsdl http://CATALOG/usm/services/AccountService?Wsdl to find inactive users ([mdb]. [Dbo]. [Ca_contact] 'inactive' column = 1) ?

     

    another question: if i try to chance the status of user with changeAccountStatus nothing happens...

     

     

    Attachment(s)



  • 2.  Re: find inactive users from wsdl service catalog

    Posted Jul 28, 2017 05:46 PM

    Accounts are different than users, you can take a look at the following for some information on accounts:

     

    Manage Accounts - CA Service Management - 14.1 - CA Technologies Documentation 

     

    To interact with the user object you will need to leverage the User Web Service methods (see Administration > Tools > Links > Web Services API > User Web Service).

     

    You can find users via the 'findUsers' method and you can activate/delete users via 'activateUser' and 'deleteUsers' methods.



  • 3.  Re: find inactive users from wsdl service catalog
    Best Answer

    Posted Jul 31, 2017 11:45 AM

    although you are right to say that the webservice for this action is wrong, the UserWebservice api doesnt have an "easy" way to show inactive users.

    When you use getAllUsers method, you don't get all users, you get only the active ones.

     

    To get a list of inactive users, you would have to use the findUsers  method,  with a filterBean of inactive equals 1, wich the documentation lacks a good example of (or any). A call would look like these:

     

    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.soap.usm.ca.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
        <soapenv:Header/>
           <soapenv:Body>
             <ser:findUsers soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
             <sessionID xsi:type="xsd:string">?</sessionID>
             <filterBeanArr xsi:type="urn:ArrayOfFilterBean" soapenc:arrayType="urn:FilterBean[]" xmlns:urn="urn:usmRequestService">
                <FilterBean>
                   <field>inactive</field>
                   <operator>Equals</operator>
                   <value>1</value>
               </FilterBean>
            </filterBeanArr>
          </ser:findUsers>
       </soapenv:Body>
    </soapenv:Envelope>