Skip to main content

deleteuser.do (Deprecated)

The deleteuser.do call deletes a user account. To delete an API service account, you must use the Veracode Platform or the Identity REST API.

Before using this API, Veracode strongly recommends that you read API usage and access guidelines. Ensure you access the APIs with the domain for your region.

REST API equivalent

The REST API equivalent of this call is a DELETE to /api/authn/v2/users/{userId} using the Identity API. Veracode strongly recommends that you use the REST API for this action. For new integrations, always use the REST APIs.

Resource URL

https://analysiscenter.veracode.com/api/3.0/deleteuser.do

Permissions

An API service account requires the Admin API role to use this call. A user account requires the Administrator role to use this call.

Parameters

NameTypeDescription
username
Required
StringRequired for non-SAML users. Usually the email address of the user.
custom_id
Required
StringRequired for SAML users. The SAML Subject field value from the user account.

HTTPie example

Examples use the HTTPie command-line tool.

http --auth-type=veracode_hmac -o deleteduserinfo.xml "https://analysiscenter.veracode.com/api/3.0/deleteuser.do" "[email protected]"

HTTPie results

The deleteuser.do call returns the deleteuserresult XML document, which references the deleteuserresult.xsd schema file. You can use the XSD schema file to validate the XML data.

In the return, the <filters .../> element lists the deleted usernames, while the <users .../> element lists the remaining users.

<?xml version="1.0" encoding="UTF-8"?>

<deleteuserresult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/deleteuserresult"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/deleteuserresult
https://analysiscenter.veracode.com/resource/deleteuserresult.xsd" userlist_version="3.0" username="username-99-1596061905076">
<result>success</result>
</deleteuserresult>