GET User Task List

I feel like I must be making a really stupid mistake here but for some reason when I run this code to try and get the UTL for a user in my workspace, I’m met with the error message “No matching route for request.”

Usually when I get this message it’s because I forgot a / in my url or something along those lines, but after combing through it a few times I can’t find any typos on my part??

const url = `https://app.asana.com/api/1.0/users/${userGID}/user_task_list`;

  const payload =
  {
    workspace: workspaceGID
  }

  const headers =
  {
    "Accept": "application/json",
    "Authorization": `Bearer ${personalAccessToken}`
  }

  const options =
  {
    method: "GET",
    headers: headers,
    payload: payload,
    muteHttpExceptions: true,
  }

  const resp = UrlFetchApp.fetch(url, options)

  Logger.log(resp);

@ChandlerCatron,

You can only access the UTL of the user who you’re authenticating to. That may be the issue if you’re trying to get the UTL of another user (although I would expect a 403 Forbidden error, so that’s a bit puzzling).