CentraSite Documentation : CentraSite Administrator’s Guide : Users, Groups, Roles, and Permissions : Adding and Managing Users : Delete Users from the Command Line
Delete Users from the Command Line
In some circumstances, a user object cannot be deleted because internal objects that reference it cannot be deleted. This can happen when there are internal references to a user object even though the user is no longer the owner of any assets. There can also be references to the user object in the audit log.
CentraSite provides a command line tool named CentraSiteDeleteUser for this purpose. The tool does the following:
*Transfers ownership of objects, access rights, and group memberships to the target user.
*If the user was the primary contact of an organization, assigns that role to the target user.
*Redirects internal references to the target user.
*Creates an OWNERSHIPTRANSFERRED event in the audit logs for every registry object that references the user object.
*Removed the GUI configuration and the user object.
The tool does not activate any policies that you might have defined.
The tool requires a Java 6 runtime. You must be an administrator to use the tool. Before you run the tool, deactivate the user and activate the target user.
Important:  
The operation to delete a user requires several steps that cannot run within a single transaction. This means every parallel running transaction will be able to see intermediate results. Make sure no other activity is in progress while you run the tool. Moreover if there is a failure of any of the steps during the execution, the registry will have an intermediate state. The original state cannot be recovered by rolling back the complete operation.
The toolbox script CentraSiteToolbox.cmd (Windows) or CentraSiteToolbox.sh (UNIX) is located in the <CentraSiteInstallDir>/utilities directory.
The syntax for the command is:
C:\SoftwareAG\CentraSite\utilities>CentraSiteToolbox.cmd CentraSiteDeleteUser.jar <CentraSite DB URL><administrator user id><password><id or key of user to be deleted><id of target user>
The input parameters are:
Parameter
Description
CentraSite DB URL
(Optional) The fully qualified URL of the CentraSite registry/repository. Default value is http://localhost:53307.
administrator user id
The user ID of a registered CentraSite user who has the CentraSite Administrator role. For example, Administrator.
password
The password for the CentraSite user identified by the parameter -user.
id or key of user to be deleted
The user ID or UDDI key of an existing CentraSite user you want to remove from the registry.
id of target user
The user ID of the new user you want to add to the CentraSite registry.
Examples:
C:\SoftwareAG\CentraSite\utilities>CentraSiteToolbox.cmd CentraSiteDeleteUser.jar http://localhost:53305/CentraSite/CentraSite DOMAIN\admin pAsSw0rD DOMAIN\oldUser DOMAIN\newUser
C:\SoftwareAG\CentraSite\utilities>CentraSiteToolbox.cmd CentraSiteDeleteUser.jar http://localhost:53305/CentraSite/CentraSite DOMAIN\admin pAsSw0rD uddi:1e5aff10-f3e3-11df-86fc-a6e2fa0ea483 DOMAIN\newUser
Copyright © 2005-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback