I am working on a slash command in PHP and have the username, but I need the user id in order to make some API calls.
I am aware of the users.list method, but that's a lot of extra information I don't need. Is there a more efficient way to do it, or do really I need to retrieve the whole list for the team and go through it until I find the unique username?
Thank you in advance!
Edit: This is not a duplicate of the proposed question as I am not using the user's email address to pull their information. I am trying to pull the user's profile by using their username and trying to avoid using users.list, as it pulls everybody's information instead of just the user I am interested in. Thanks!