RenameNotesUser -OU

Hi,

We have user id as

Naganathan S/IT/polarisFT

and i am looking for the lotus script to rename this user id as

Naganathan S/HR/polarisFT

noteID$ = notesAdministrationProcess.RenameNotesUser( username$ [ , lastname$ ] [ , firstname$ ] [ , middleinitial$ ] [ , orgunit$ ] [ , altcommonname$ ] [ , altorgunit$ ] [ , altlanguage$ ] [ , renamewindowsuser ] )

I am using the folling code but it’s throwing error.

Dim session As New NotesSession

Dim adminp As NotesAdministrationProcess

Set adminp = session.CreateAdministrationProcess("admin01/SRVR/polarisFT")

If adminp.IsCertificateAuthorityAvailable = True Then    

	adminp.CertificateAuthorityOrg = "/polarisFT"    

	adminp.UseCertificateAuthority = True

End If 

noteid$ = adminp.RenameNotesUser(	"Naganathan S/IT/polarisFT","","","","HR/polarisFT")

If noteid$<> "" Then

	Dim db As New NotesDatabase("admin01/SRVR/polarisFT", "admin4.nsf")

	Dim ws As New NotesUIWorkspace

	Call ws.EditDocument(False, db.GetDocumentByID(noteid$))

End If

Please help.

Subject: Telling us exactly what error occurs might help

Subject: Notes error: An improperly formed name was encountered

Getting the following error in the below line of code

Notes error: An improperly formed name was encountered

noteid$ = adminp.RenameNotesUser( “Naganathan S/IT/polarisFT”,“”,“”,“”,“HR/polarisFT”)

Subject: Try using just “HR” as the parameter

Subject: Tried all possible combinations - still getting same error

Tried all possible combinations - still getting same error

Please help

noteid$ = adminp.RenameNotesUser(“Naganathan S/IT/polarisFT”,“”,“”,“”,“HR/polarisFT”)

noteid$ = adminp.RenameNotesUser(“Naganathan S/IT/polarisFT”,“”,“”,“”,“/HR/polarisFT”)

noteid$ = adminp.RenameNotesUser(“Naganathan S/IT/polarisFT”,“”,“”,“”,“HR”)

noteid$ = adminp.RenameNotesUser(“Naganathan S/IT/polarisFT”,“”,“”,“”,“/HR”)

noteid$ = adminp.RenameNotesUser(“CN=Naganathan S/OU=IT/O=polarisFT”,“”,“”,“”,“HR/polarisFT”)

noteid$ = adminp.RenameNotesUser(“CN=Naganathan S/OU=IT/O=polarisFT”,“”,“”,“”,“/HR/polarisFT”)

noteid$ = adminp.RenameNotesUser(“CN=Naganathan S/OU=IT/O=polarisFT”,“”,“”,“”,“HR”)

noteid$ = adminp.RenameNotesUser(“CN=Naganathan S/OU=IT/O=polarisFT”,“”,“”,“”,“/HR”)

Subject: Waiting for someone to help me…

Waiting for someone to help me…