Our corporate extranet site originally gave employees access to policies, committee calendars and other applications. We've added email services to the site for more than 100 accounts. To do this, I had to create the Lotus Notes database and adjust both the access control list (ACL) and mail file owners in the preferences.
When an email account is first created, you can tell AdminP to create the mail file, instead of doing it in real time. Unfortunately, you can't create this particular AdminP request manually, through Notes or the Admin client. With some work, I was able to duplicate this request using LotusScript. The agent pulled the information from the selected Domino Directory entries.
Copy the following agent into your Domino Directory and change the constants in the Declarations section to match your domain. I signed the agent and ran it as a user in the external Domino domain with full admin rights, instead of my usual ID from our internal domain, even though that ID can register accounts interactively without problems.
Once you've adjusted the agent, open the People view, select the documents for people who should have mail files and then select the agent from your Actions list. This agent will cycle through the selected documents, parse out the necessary information to create an Administrative Request to create a mail file and then update the Person document to refer to it.
Note: Remember to
TELL ADMINP PROCESS ALLto create the mail files or you'll have to wait for it to trigger as scheduled.
This coding is fairly basic; the trick is flagging individual fields as signed and/or protected. This was used in a Lotus Notes/Domino 7.0.2 environment, but could be used in Notes/Domino 6.x and higher.
Do you have comments on this tip? Let us know.
This tip was submitted to the SearchDomino.com tip library by member Eric Jewett. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes/Domino technical tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.