DeleteUser (NotesAdministrationProcess - LotusScript®)

Enters a request in the Administration Requests database to delete a user.

Defined in

NotesAdministrationProcess

Syntax

noteID$ = notesAdministrationProcess .DeleteUser( username$ , immediate , mailfileaction% , denygroup$ [ , deletewindowsuser ] )

Parameters

username$

String. The hierarchical name of the user in canonical or abbreviated form.

immediate

Boolean.

  • True deletes all references to the user in the Domino® Directory before issuing an administration process request.
  • False lets the administration process make all deletions.
    Note: A True setting may impact performance.

mailfileaction%

Constant of type Integer. Indicates the disposition of the user's mail file:

  • MAILFILE_DELETE_ALL (2) deletes the mail file on the user's home server and all replicas.
  • MAILFILE_DELETE_HOME (1) deletes the mail file on the user's home server.
  • MAILFILE_DELETE_NONE (0) leaves the user's mail file.

denygroup$

String. The name of an existing group of type "Deny List Only" to which the name of the deleted user is added. The empty string means do not add the user name to any group.

deletewindowsuser

Boolean. Optional.

  • True also deletes the correspondong Windows user.
  • False (default) does not delete the corresponding Windows user.

Return value

noteID$

String. The note ID of an entry created in the Administration Requests database.

Usage

This method triggers "Delete person in Domino® Directory," "Delete in Person documents," "Delete in Access Control List," "Delete in Reader / Author fields," "Get information for deletion," "Approve file deletion," "Request file deletion," "Delete mail file," "Delete unlinked mail file," "Approve deletion of Private Design Elements," "Request to delete Private Design Elements," and "Delete Private Design Elements" administration process requests.

Example