You get the ID of a user with a database query:
SELECT userid FROM qa_users WHERE handle = 'username';
Or
SELECT userid, handle FROM qa_users;
if you want a list of all users and their IDs.