Dim session As New NotesSessionDim adminp As NotesAdministrationProcess
Set adminp = session.CreateAdministrationProcess(“serverName”)
id_note$ = adminp.RenameWebUser(“OldFirstName OldLastName/OU/O”,“NewFirstName NewLastName/OU/O”)
Only the two parameters are not optionals. In this case, I’ve the error: missing a required argument ??
With the line :
id_note$ = adminp.RenameWebUser(“OldFirstName OldLastName/OU/O”,“NewFirstName NewLastName/OU/O”,“NewLastName”,“NewFirstName”)
I’ve the error: entry not found in index.
So, it seems there’s an error in the designer help file.
Does anyone know the not optional argument is missing ?
Thank you.
Subject: RenameWebUser method doesn’t run !
Note to myself when searching for this issue the next time:
From my testing in 7.0 it appears, that all arguments but the last have to be provided.
id$ = adminp.RenameWebUser(oldName, newName, lastName, firstName, newMiddleInitial, newShortName [, newEMail])
newName must not be the same as oldName. That means, you cannot use RenameWebUser to just change one of the other values.
Subject: RenameWebUser: Update for 8.5.3
It still looks like RenameWebUser fails on non-hierarchical names, when used according to the documentation.
Well, strictly speaking Designer help tells us to specify full hierarchical names, but my web users do not have hierarchical names nor IDs nor Notes clients.
I did not do too much additional testing, but my approach from October 2007 seems to still work in Domino 8.5.3. That means:
id$ = adminp.RenameWebUser(oldName, newName, lastName, firstName, newMiddleInitial, newShortName [, newEMail])
still works with non-hierarchical values of oldName and newName, if lastName, firstName, newMiddleInitial and newShortName are provided. You MUST NOT use the asterisk (“*”), but you can specify empty strings, of course.