Skip to main content
Question

Facing issues while fetching retention policy on a file

  • 12 September 2024
  • 1 reply
  • 14 views

Goal : Try to fetch the retention policy on a file if there is one.

When creating the App I enabled manage_data_retention scope and I am sure that there are files under retention policies.

Even though File information in UI is giving retention policy information, 

 

I tried to fetch all the files under retention policies and use query like file_id to narrow down the retention policy on file.

  • GET

    List file version retentions

  • But the response I am getting is: 

  • { "entries": s], "limit": 100, "order": r { "by": "file_version_id", "direction": "ASC" } ] }

I tried to fetch file_versions under retention policy assignment but that is giving 

API used : 

{

"type": "error",

"status": 403,

"code": "access_denied_insufficient_permissions",

"help_url": "http://developers.box.com/docs/#errors",

"message": "Access denied - insufficient permission",

"request_id": "---"

}

 

IN the scopes documentation page - https://developer.box.com/guides/api-calls/permissions-and-errors/scopes/ I see that enterprise_content  scope is needed for manage_data_retention scope to work perfectly.

If enterprise_content  scope is needed, I saw that box support provides help in providing this scope.

So I want to ask box support to enable enterprise_content  scope too if it’s needed.

 

 

 

 

Hi @userConcentric 👋 Welcome to Box community! Sorry to learn you encountered issues while fetching retention policy on a file. We appreciate exhausting our resources to try resolving this.

This would require our Product Support assistance in order to fetch retention policy on a file. They will also assist you enabling the enterprise_content scope to function properly.

To assist, kindly reach out to our Support team by visiting our support page.

Hope to have this sorted out! 🤗


Reply