RegisterNewUser (NotesRegistration - LotusScript®)
Creates a user ID and optionally adds it to a Domino® Directory.
Defined in
Syntax
variant = notesRegistration .RegisterNewUser( lastname$ , idfile$ , mailserver$ [, firstname$ [, middle$ [, certpw$ [, location$ [, comment$ [ , maildbpath$ [ , fwddomain$ [ , userpw$ [, usertype% [, altname [ , altnamelang ]]]]]]]]]]] )
Parameters
lastname$
String. The last name of the user to be registered.
idfile$
String. The ID file to be created; specify the complete path, for example, c:\notes\data\user.id.
mailserver$
String. The canonical name of the server containing the user's mail file.
firstname$
String. A first name for the user.
middle$
String. A middle initial for the user.
certpw$
String. The password of the certifier ID file.
location$
String. A value for the location field in the Domino® Directory record.
comment$
String. A value for the comment field in the Domino® Directory record.
maildbpath$
String. The path of the user's mail file relative to the mail directory; for example, mail\jones.nsf.
fwddomain$
String. The forwarding domain for the user's mail file.
userpw$
String. A password for the user ID file.
usertype%
Constant of type Integer. Indicates the type of client to be created. May be one of the following.
NOTES_DESKTOP_CLIENT (175) |
Desktop client |
---|---|
NOTES_FULL _CLIENT (176) |
Default, full client |
NOTES_LIMITED_CLIENT (174) |
Mail client |
altname
String. An alternate user name.
altnamelang
String. The language for the alternate user name. See @Locale in the formula language for a list of language codes.
Usage
Before calling this method, set CertifierIDFile, Expiration (defaults to 2 years from now), IDType, and MinPasswordLength.
Set UpdateAddressBook True to add a Server record to the Domino® Directory. Set StoreIDInAddressBook True to attach the ID to the Domino® Directory record. These operations can be performed separately with AddUserToAddressBook.
Set OrgUnit to add an organizational unit to the ID name. Optionally set AltOrgUnit and AltOrgUnitLang.
Optionally set IsNorthAmerican and RegistrationLog.
This method acts on the Domino® Directory (names.nsf) for the server specified by RegistrationServer, or names.nsf in the local Domino® data directory if this property is not set.