Domino Code Fragment
| Code Name* UserNameObject property  | Date* 11/04/2025  | Source (or email address if you prefer)* [email protected] IP address:.172.70.50.50  | |
|   Description* This agent gets a Name object for the current user and prints the common user name.  | Type* Java  | Categories* (Misc)  | |
| Implementation: | Required Client: | Server: | 
| Limitations: | Comments: | |
public class usernameobjectagent extends AgentBase
{
  public void NotesMain()
    {
    try
      {
        Session s = getSession();
        Name no = s.getUserNameObject();
        String u = no.getCommon();
        System.out.println("Common user name = " + u);
      }
    catch (Exception e)
      {
        e.printStackTrace();
      }
    }
}