Skip to main content
Question

Python SDK - Getting "Authorization Failed" for Listing File's Tasks

  • May 22, 2025
  • 0 replies
  • 12 views

Forum|alt.badge.img

Attempting to get the list of tasks that I know for certain are associated with a file in Box.  Getting a 404 with message Authorization Failed'.  My automation user's ID has been added as an "Editor" of a parent folder that's in this file's hierarchy.  What must be done to grant my automation user the ability to list the tasks associated with this file a 'la:

tasks = client.file(file_id='123456789').get_tasks()
for task in tasks:
print('Task ID is {0} and the type is {1}'.format(task.id, task.type))