Problem getting folder email address
Hello!
I am working on an application that needs to create folders on Box and get the email address from the folder created to upload files by email.
My application uses JWT server side auth and the Java SDK to authenticate to Box. The authentication is successful, and I am able to create and delete folders, download files with the SDK. The problem is that the folders are not created with the "Upload via email" option turn on, and if I try to update the folder to allow that, I get 403 - access_denied_insufficient_permissions - Access denied - insufficient permission
Even if I manually enable the "Upload via email" option on the folder in the account, if I get the folder's information using the SDK, I get a null in the uploadEmail value.
Below is how the application was configured
Do you know what I need to change?
-
Hi
I tried to reproduce your error and I can reproduce the error when the permissions of the service account is set to 'viewer upload' or lower on the folder I am trying to set the folder email upload on. The service account needs 'editor' or 'co-owner' rights to be able to set the folder email upload attribute.
For subsequent fetches you need to specify the field when you get the folder info from the SDK - like below
BoxFolder.Info info = folder.getInfo("folder_upload_email");
System.out.println(info.getUploadEmail().getEmail());Hope this helps
Best regards, Peter Christensen, Platform Solutions Engineer, Box
サインインしてコメントを残してください。
コメント
1件のコメント