PTFM-9337: bugfix for converting usernames to user IDs