How to get user id from user name (noob)

data.users[0]._id should be correct. Should start by looking at what data contains to make sure you’re not getting some error json back.