Skip to main content
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

Sign in to participate Previous Next
Subject: Move a user to another organisation with adminp using Lotus Script
Feedback Type: Question
Product Area: Other
Technical Area: Application Development
Platform: Windows
Release: 8.5.2
Reproducible: Not applicable

I am trying to use Lotus Script to move a user from one organisation to another. I have done this manualy using administrator so I know the basic setup is working but seem unable to duplicate this in script.

So CN=User Name/O=oldDomain
will become
CN=User Name/O=newDomain

I am using the following code:

strCertifierPath = path of the certifier file
for the new domain
strCertPassword = password of the certifier file for the new domain
oldDomain = old domain name
newDomain = new domain name

adminp.CertificateAuthorityOrg = "/" & oldDomain
adminp.CertifierFile = strCertifierPath
adminp.CertifierPassword = strCertPassword
'Do recertification
noteID=adminp.MoveUserInHierarchyRequest(userName, "O=" & newDomain, True)
If Err <> 0 Then
If CStr(Err) = "4000" Then
'what error handling should I put here to get the request to relaunch?
End If
End If

The error that I get in certlog is

ERROR MESSAGE: Notes error: The selected certifier is not an ancestor of the entity to be updated

This seems to imply that I need to use the original certifier in the process of changing to the new

So in my error handling for 4000 I was thinking of doing the Requests move user again code. BUt am not sure how that will differ from the original request.

Any ideas?

Feedback number WEBB8HUF73 created by Solve Problems on 06/15/2011

Status: Open
Comments: Also if I use noteID = adminp.RecertifyUser(userName) it does not work. Will play around with rename next

Move a user to another organisation... (Solve Problems 15.Jun.11)
. . Solved (Solve Problems 21.Jun.11)
. . d (Barry Shapiro 2.Sep.13)


Search this forum

Sign In or Register

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

Member Tools

RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite