I have a Google sheet that imports and updates tasks from one of my Google tasks list. Some of the tasks need to be completed by users of other accounts with shared access to the sheet.
The code works fine when run from my account. But it fails when run from another account because it can't find the task. I have shared my calendar with the other users but this does not help.
The code in question is as follows:
var tasklistID="mytasklistid";
var listoftasks = Tasks.Tasks.list(tasklistID);
I get the following error when running from another user's account:-
Execution failed: API call to tasks.tasks.list failed with error: Not Found.
How do I enable the other users to access my tasklist?