Delete the user details from the system
Namespace: CelloSaaS.ServiceContracts.UserManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- userIdentifier
- Type: System String
User Identifier(Mandatory)
Exceptions
Exception | Condition |
---|---|
System UnauthorizedAccessException | If the user has not the privilege to delete user |
System ArgumentNullException | If userId is null or empty. |
CelloSaaS.ServiceContracts.UserManagement UserDetailException | If 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