Correction: should use uid instead of username.