Click or drag to resize

IUserManagerRemoveUser Method


Permanently removes a User.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax
bool RemoveUser(
	IUser user
)

Parameters

user
Type: Ingeniux.CMSIUser
The User to remove

Return Value

Type: Boolean
True if the User still exists in Content Store, false otherwise.
Exceptions
ExceptionCondition
InvalidOperationExceptionWhen the "user" is the Current Operating User.
SecurityExceptionWhen the Operating User doesn't have administrative privileges.
Remarks

If the "user" parameter value is null, returns false.

The method also removes this User from all Groups it belonged to.

This method fires two events: BeforeUserDelete and AfterUserDelete.

See Also