Examples: FindUserInDomain method

This agent enters a request to find all occurrences of the "Motorcycle Guy" user.

Sub Initialize
  Dim session As New NotesSession 
  Dim adminp As NotesAdministrationProcess
  Set adminp = _
  adminp.CertifierFile = _
  Dim ws As New NotesUIWorkspace
  adminp.CertifierPassword = _
  ws.Prompt(PROMPT_PASSWORD, "Password", _
  "Type certifier password.")
  noteid$ = adminp.FindUserInDomain("Motorcycle Guy")
  If noteid$ <> "" Then
    Dim db As New NotesDatabase("Software_Server", "admin4")
    Call ws.EditDocument(False, db.GetDocumentByID(noteid$))
  End If
End Sub