Examples: addUserProfile method
This agent adds the setup profile "Ordinary User" to the Person record for Annette LeBlanc.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
Registration reg = session.createRegistration();
reg.setRegistrationServer("AceOne");
reg.addUserProfile(
"Annette LeBlanc", // user name
"Ordinary User"); // profile name
} catch(NotesException e) {
System.out.println(e.id + " " + e.text);
e.printStackTrace();
}
}
}