[net] Add role for user

  - fix a issue with search_emailusers
  - fix bad memory usage