Long-standing Bug. Client Credentials access - Grant Credentials are Invalid
CompletedHi all, I believe I'm running into this bug from 4 years ago
Judging by responses on this thread, it appears to be an ongoing bug which is manually managed by Box Support staff. Unfortunately, I can't find a way to get in touch with Box Support other than this community forum.
Client Id is `a5lfxcrntbddqq3db3k2r3wl00q4vero`
-
Resolved. Working code below:
Config.json is the config downloaded from the developer panel for the app.
The change that needed to be enabled was that in the developer panel the app needed to be set to App+Enterprise Access, make sure boxes for permissions are checked (you need write permission to download, according to the text in the developer panel), and then the app needs to be re-submitted for authorization. I was testing some of these changes but did not realize it needed to be re-submitted and authorized again in order for them to take effect.
App still needs enterprise access even if the service account for the user has permissions on the folder/file to download. I had a variety of different errors when testing different configurations including a common 403: "status":403,"code":"access_denied_insufficient_permissions"
I'm including this info in case anyone finds this issue from Google.auth = BoxJWTAuth(
config = JWTConfig.from_config_file('config.json')
)
client = BoxClient(auth)file: Optional[ByteStream] = client.downloads.download_file('my-file-id')
file
Please sign in to leave a comment.
Comments
2 comments