Attempting to automate the deletion of users, using the DeleteUser method…
Read the help and set it up correctly, however, it says to completely remove a user, the ApproveMailFileDeletion method must be used.
I’m not sure how to retrieve the NoteID of the original DeleteUser request…
Looked at admin4.nsf database’s views, but not sure how to grab the correct document…
Thanks!
Dan
Subject: NotesAdministrationProcess class and ApproveMailFileDeletion method
Dan, did you ever receive an answer. I am trying to do the same thing!!
Thanks,
Eric
Subject: RE: NotesAdministrationProcess class and ApproveMailFileDeletion method
This is how I did to find the right document./Daniel
sName = “Jay Zbella/AZ/MashGroup”
Set Ad4View = Admin4Db.getview("All Requests by Name")
Set dc = Ad4View.getalldocumentsbykey(sName, True)
Set docAd4 = dc.GetFirstDocument
While Not docAd4 Is Nothing
If docAd4.ProxyAction(0) = "22" Then
sNoteID = docAd4.NoteID
Set adminp = session.CreateAdministrationProcess(NABDb.Server)
sNoteID = adminp.ApproveMailFileDeletion(sNoteID)
End If
Set docAd4 = dc.GetNextDocument(docAd4)
Wend