Deleting a user account

To delete a user account, use the method you use to delete any other InfoObject. Follow these steps:

Example

var Users = IStore.Query("SELECT SI_ID FROM CI_SYSTEMOBJECTS WHERE SI_PROGID='CrystalEnterprise.USER' And SI_ID="+UserID+"");

Users.Delete (1);

IStore.Commit (Users);

Remarks

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