.

HCLSoftware Business Partner
Domino Consulting Services
CRUCIAL Notes Tools
+1 212-599-2048

Domino Consulting Services
CRUCIAL Notes Tools
Domino administration
Notes development

Facebook Twitter YouTube
Chat now       
.
ProductsDownloadsNewsAbout usContact


Need a Domino Consultant? Call NotesMail +1 212-599-2048 - HCLSoftware Business Partner

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