The DeleteUser operation is used to remove an AssureSign user. This operation requires an AuthenticationToken returned from AuthenticateUser, which in turn requires passing of an active AssureSign username and password.
The DeleteUser operation requires knowledge of the following:
- the AssureSign account ContextIdentifier the user belongs to (this is exposed in the AssureSign administrative application account settings). The ContextIdentifier is in the form of a global unique identifier (GUID).
- an AuthenticationToken, returned from a successful call to AuthenticateUser
- the UserName of the user to be deleted, which is an email address
<?xml version="1.0" encoding="utf-8"?> <DeleteUser xmlns="https://www.assuresign.net/Services/DocumentNOW/Users"> <Request ContextIdentifier="06C4A84A-693C-46CB-8DF2-40A8215AA056" AuthenticationToken="[authentication token]" UserName="email@example.com" /> </DeleteUser>
The SOAP Action header is
The returned result will include:
- a Success flag indicating whether or not the user was deleted successfully
The DeleteUserResult should be checked for the presence of an Exceptions element, which may contain multiple UserException items.
Sample XML response is presented here:
<?xml version="1.0" encoding="utf-8"?> <DeleteUserResponse xmlns="https://www.assuresign.net/Services/DocumentNOW/Users"> <DeleteUserResult Success="true"> <Exceptions /> </DeleteUserResult> </DeleteUserResponse>