LOTUSSCRIPT/COM/OLE CLASSES


Examples: DeleteUser method
This code creates an administration request to delete a user. You must approve the mail file deletion before the user is completely removed.

Sub Initialize
 Dim session As New NotesSession
 Dim ws As NotesUIWorkspace
 Dim adminp As NotesAdministrationProcess
 Dim userName as Variant
 Set adminp = _
 session.CreateAdministrationProcess("myServer/northeast")
 userName = ws.Prompt(PROMPT_OKCANCELEDIT, _
 "User", Enter the hierarchical name of the user to delete")
 Call adminp.DeleteUser(userName, False, MAILFILE_DELETE_ALL, _
 "", False)
End Sub

See Also