addUserToAddressBook (NotesRegistration - JavaScript™)
Creates a Person record in a Domino® Directory based on a user ID file and optionally attaches the ID file.
Defined in
NotesRegistrationSyntax
addUserToAddressBook(idfile:string,
fullname:string, lastn:string) : boolean
addUserToAddressBook(idfile:string,
fullname:string, lastn:string, userpw:string) : boolean
addUserToAddressBook(idfile:string,
fullname:string, lastn:string, userpw:string, firstn:string, middle:string,
mailserv:string, mailfilepath:string, fwdaddr:string, location:string,
comment:string) : boolean
Parameter | Description |
---|---|
String idfile |
The ID file for the user to be added to the Domino® Directory; specify the full path, for example, c:\notes\data\user.id. |
String fullname |
The user's full name. |
String lastn |
The user's last name. |
String userpw |
The password for the user ID file. |
String firstn |
The user's first name. |
String middle |
The user's middle name. |
String mailserv |
The name of the user's mail server specified in canonical format. |
String mailfilepath |
The relative pathname for the user's mail file, for example, mail\jyip.nsf. |
String fwdaddr |
The user's forwarding mail address. |
String location |
A value for the location field in the Domino® Directory record. |
String comment |
A value for the comment field in the Domino® Directory record. |
Return value | Description |
---|---|
boolean |
Returns true if the operation is successful; false otherwise. |
Usage
Set StoreIDInAddressBook true to attach the ID to the Domino® Directory record.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.
StoreIDInAddressBook must be true This method occurs automatically with registerNewUser if UpdateAddressBook is true.