To delete a user account, use the method you use to delete any other InfoObject. Follow these steps:
var Users = IStore.Query("SELECT SI_ID FROM CI_SYSTEMOBJECTS WHERE SI_PROGID='CrystalEnterprise.USER' And SI_ID="+UserID+"");
When querying for the object you want to delete, retrieve the SI_ID property; do not use *. By querying for one property instead of many, you reduce the load on the APS.
Crystal Decisions, Inc. http://www.crystaldecisions.com Support services: http://support.crystaldecisions.com |