Lotus Script classes for accounts

I am looking for domino Lotus script classes for changing the organizational unit, user name and deleting accounts.

The registration class has been helpful for automating the registration process but I would like to do the same for name changes, section changes and account deletions.

Can anyone point me in the right direction?

Thanks for your help.

Subject: The ND6 NotesAdministrationProcess Class

This class has everything that you could want in this respect. See the methods in the help doc below:

NotesAdministrationProcess class

Example

Represents the administration process.

Note This class is new with Release 6.

Containment

Contained by: NotesSession

Properties

CertificateAuthorityOrg

CertificateExpiration

CertifierFile

CertifierPassword

IsCertificateAuthorityAvailable

UseCertificateAuthority

Methods

AddGroupMembers

AddInternetCertificateToUser

AddServerToCluster

ApproveDeletePersonInDirectory

ApproveDeleteServerInDirectory

ApproveDesignElementDeletion

ApproveMailFileDeletion

ApproveMovedReplicaDeletion

ApproveNameChangeRetraction

ApproveRenamePersonInDirectory

ApproveRenameServerInDirectory

ApproveReplicaDeletion

ApproveResourceDeletion

ChangeHTTPPassword

ConfigureMailAgent

CreateReplica

DeleteGroup

DeleteReplicas

DeleteServer

DeleteUser

FindGroupInDomain

FindServerInDomain

FindUserInDomain

MoveMailUser

MoveReplica

MoveRoamingUser

MoveUserInHierarchyComplete

MoveUserInHierarchyRequest

RecertifyServer

RecertifyUser

RemoveServerFromCluster

RenameGroup

RenameNotesUser

RenameWebUser

SetServerDirectoryAssistanceSettings

SetUserPasswordSettings

SignDatabaseWithServerID

UpgradeUserToHierarchical

Subject: RE: The ND6 NotesAdministrationProcess Class

Thanks for the responses.

Since I posted this message I found the “NotesAdministrationProcess” class mentioned in another post on this board.

It has the methods I was looking for and I agree this would be a safer way to do the things I listed.

Am I correct in thinking that I can use the “RenameNotesUser” to just change the organizational unit?

Also my first attempt at using this class is not going so well.

I am trying to use the “CreateReplaca” method and am getting the following error message.

“You are not authorized to perform that operation”

I did a search and did not find anything. Any thoughts on this error would be helpful.

Thanks,

C.J.

Subject: RE: The ND6 NotesAdministrationProcess Class

I would check your access to the admin request database.

To the oraganizational unit question, it could apply, but you need to have the ou certifier to recertify that id.

The danger here is that if you don’t have the user’s id updated he/she is locked out from using notes applications.

Lastly if you look at the view actions it had the same information, but of course the @Commands.

I would definitely suggest testing this process as well to make sure there is not a negative impact to the user.

HTH – Cheers

Subject: Lotus Script classes for accounts.

For account deletions I would look at the code behind the delete person button. That process does work with Adminp – it would be a bad thing if you don’t follow that process if you have configured adminp. As for section changes-- are you stating section as in the person document? On the name change – I would look at the code on the button or the action “Rename” you want adminp to follow this process as well. It could have negative side effects if you have reader/author.

So to directly answer there is no class for what you are asking. But I would warn that you can screw up an environment if you don’t test this process well. You are talking about NAME field here and they are tied to databases with author and reader access and are tied to ACL.

HTH – Cheers.