REST.Backend.EMSApi.TEMSClientAPI.DeleteUser

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DeleteUser(const AObjectID: string): Boolean; overload;
function DeleteUser(const AUser: TUser): Boolean; overload;

C++

bool __fastcall DeleteUser(const System::UnicodeString AObjectID)/* overload */;
bool __fastcall DeleteUser(const TUser &AUser)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
REST.Backend.EMSApi.pas
REST.Backend.EMSApi.hpp
REST.Backend.EMSApi TEMSClientAPI

Description

Requests the deletion of the specified user from the EMS server and returns True on success or False otherwise.

You may specify the target user as an instance of TUser, or provide a string with the ID of the target user.

Exceptions

Exception Message Description

EEMSClientAPIError

MasterSecret required

Authentication is TAuthentication.MasterSecret and ConnectionInfo.MasterSecret is an empty string.

Session token required

Authentication is TAuthentication.Session and you did not log in or the session authentication token that you provided to Login is an empty string.

User ID required

The specified user ID is an empty string.

See Also