@Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    LdapUserGroupMemberDto that = (LdapUserGroupMemberDto) o;

    if (userName != null ? !userName.equals(that.userName) : that.userName != null) return false;
    if (groupName != null ? !groupName.equals(that.groupName) : that.groupName != null) return false;

    return true;
  }
Get the user name.

@return the user name
ambari-server/src/main/java/org/apache/ambari/server/security/ldap/LdapUserGroupMemberDto.java