def _LookupMeOrUsername(cnxn, username, services, user_id):
  """Handle the 'me' syntax or lookup a user's user ID."""
  if username.lower() == 'me':
    return user_id

  return services.user.LookupUserID(cnxn, username)