Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Notes and Domino Application Development wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
Community Articles > Programming > LotusScript > MoveUserInHierarchyRequest and MoveUserInHierarchyComplete Example
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

MoveUserInHierarchyRequest and MoveUserInHierarchyComplete Example

The current Lotus Notes designer help file for notesAdministrationProcess.MoveUserInHierarchyRequest and notesAdministrationProcess.MoveUserInHierarchyComplete do not contain example to see how these functions are used. This wiki article will provide one example of how to use them.
Community articleMoveUserInHierarchyRequest and MoveUserInHierarchyComplete Example
Added by ~Naomi Xanjipychekoden on May 11, 2012 | Version 1
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
The current Lotus Notes designer help file for notesAdministrationProcess.MoveUserInHierarchyRequest and notesAdministrationProcess.MoveUserInHierarchyComplete do not contain example to see how these functions are used. This wiki article will provide one example of how to use them.
Tags: MoveUserInHierarchyRequest, MoveUserInHierarchyComplete, LotusScript

In order to properly move/rename a user in your environment programmatically, you can use these two function together. First you use MoveUserInHierarchyRequest to create the adminp request, then use MoveUserInHierarchyComplete to process that request and to rename the user if needed. The following code sample is one way to do this.

 

adminp.Certifierfile = "c:\ids\old-O-cert.id"
adminp.Certifierpassword = "password"

adminp.Usecertificateauthority = False
certstring = "/" + newOU1 + "/" + newO

'must specify new OU
noteid1 = adminp.Moveuserinhierarchyrequest(username.Abbreviated, certstring, False)
'wait to allow time for the request to post in admin4.nsf
Sleep 5
'must specify new certifier file and password
adminp.Certifierfile = "c:\ids\new-OU-cert.id"
adminp.Certifierpassword = "password"
noteid2 = adminp.Moveuserinhierarchycomplete(noteid1)


  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (1)
collapsed Versions (1)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (1)May 11, 2012, 5:59:05 PM~Naomi Xanjipychekoden  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL
  • Privacy
  • Accessibility