This document describes an approach that one may use to inactivate a large number of contact records within Service Desk
All releases of CA Service Desk Manager
pdm_extract -f "Select inactive, id, userid from ca_contact where inactive = 0 and userid LIKE 'a%'" > contact-a.dat
TABLE ca_contact
inactive id userid
{ "0" ,"D1234567891234567891234567891234" ,"Asmith" }
{ "0" ,"72345678912345678912345678912345" ,"ahd" }
{ "0" ,"88912345678912345678912345678912" ,"AJones" }
TABLE ca_contact
inactive id userid
{ "1" ,"D1234567891234567891234567891234" ,"Asmith" }
{ "1" ,"88912345678912345678912345678912" ,"AJones" }
pdm_load -f contact-a.dat -a
The above is described as an example only. Support is not permitted to assist you to further develop the above into a custom script, nor can Support assist you in tweaking the above in any way to suit a specific need. Performing the change directly in the database itself is not advised.
We also recommend that you test the above in a non-production instance and also start with a small scale set of users
If there is an existing LDAP integration being considered as part of the mass inactivation, if there is a user with existing data relationships present within SDM, inactivating the user and replacing it with a version from LDAP integration may result in some data anomalies. For instance, disabling the above "Asmith" user in SDM, then importing a new "Asmith" user via LDAP integration may result in:
Deletion of a contact record is not supported within Service Desk. This is due to the number of areas within the database schema that involves the contact records. Deletion may result in dangling persid errors reported in the stdlog.