public static ExpandoColumn addUserExpandoColumn(long companyId, String name, int type)
      throws PortalException, SystemException {

    long tableId = ExpandoUtil.getExpandoTableId(companyId, User.class.getName());

    ExpandoColumn column = ExpandoColumnLocalServiceUtil.getColumn(tableId, name);

    if (column == null) column = ExpandoColumnLocalServiceUtil.addColumn(tableId, name, type);

    return column;
  }