Service Account insufficient scope error with CCGAuth in Python
Hello,
I am using the Python SDK to upload files to Box through a Service Account.
To this effect I created a custom app in the developper console, had it authorized by my enterprise admin.
Authentication Method: OAuth 2.0 with Client Credentials Grant (Server Authentication)App access level: App access only
Application scope: Write all files and folders stored in Box
From the Box UI, the service account was given Editor access to the target folder through its mail address (note: co-owner and uploader roles have been tested as well)
A python module was created in order to upload/download files from the targeted folder using the CCGAuth client
'Bearer realm="Service", error="insufficient_scope", error_description="The request requires higher privileges than provided by the access token."'
Upgrading to the latest version (3.7.0) did not solve the issue.
Nor did refresh the secrets.
Using the CCGAuth client stills allows for getting all metadata about the folder (including confirming that the service account has the Editor or co-owner permissions on the folder).
Is there a workaround to this situation ?
Thank you in advance for your support ! Please let me know if you need additional details
-
Hello,
Thank you for your reply !
The application was created with an enterprise account indeed, the enterprise id is not 0.
At the moment I'm applying for reauthorization to see if it solves the issue, but if in the meanwhile you see another path I can explore it would be awesome !
Thank you for the support !
サインインしてコメントを残してください。
コメント
5件のコメント