IUserDetailsService PermanentDeleteUser Method CelloSaaS API Documentation
Delete the user details from the system

Namespace: CelloSaaS.ServiceContracts.UserManagement
Assembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax

void PermanentDeleteUser(
	string userIdentifier
)

Parameters

userIdentifier
Type: System String
User Identifier(Mandatory)
Exceptions

ExceptionCondition
System UnauthorizedAccessExceptionIf the user has not the privilege to delete user
System ArgumentNullExceptionIf userId is null or empty.
CelloSaaS.ServiceContracts.UserManagement UserDetailExceptionIf Any exception occurred, while connecting or modifying the database.
Examples

Public void DeleteUser()
{
    string userId = "428C0E1A-C993-DF11-8DEB-001EC9DAB123";
    IUserDetailsService userDetailsService = (IUserDetailsService)ServiceLocator.GetServiceImplementation(typeof(IUserDetailsService));
    userDetailsService.PermanentDeleteUser(userId);
}
See Also