Application Programming Interface Guide > Web Services Operations > Operations Reference > destroyUser
 
destroyUser
Destroy a user in a domain. The user is removed from any group it belonged to. The user’s home folder, /users/domainName/userName, is destroyed if it exists. All resources owned by the user that were not in the user’s home folder are transferred to be owned by user nobody in domain composite. If the user’s domain is an EXTERNAL domain, only the read-only reference to the user is destroyed. The user still exists within that domain, but is not visible to the TDV Server.
Location
/services/webservices/system/admin/user/operations/
Request Elements
domainName: The user’s domain name.
userName: The name of the user to destroy.
Response Elements
N/A
Faults
NotAllowed: If the user cannot be destroyed. For example, the admin user in the composite domain cannot be destroyed.
NotAllowed: If an attempt is made to use this operation with an insufficient license.
NotFound: If the domain does not exist.
NotFound: If the specified user does not exist.
Security: If the user does not have the ACCESS_TOOLS and MODIFY_ALL_USERS rights.