We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
infra
4 years agoExplorer | Level 3
Shared folder between two premium account
I'm using java SDK 4.0.1 and the sharing function doesn't work correctly with a premium account dropbox. From the original account, my folder is correctly shared with the user, but he can't see the ...
infra
4 years agoExplorer | Level 3
To reproduce :
Have two "standard" paying accounts
Use the java 4.0.1 SDK
Now just use the 'AddMember' method and pass the email of the dropbox premium account you want to add to the folder.
On dropbox the folder is marked as being shared with this premium account but the user has no access to it.
The same operation works between a paid account and a free account but not between a paid account and a paid account
Example code for sharing :
public void shareFolder(UserEntity user, String folderApiId, List<String> emails) throws DbxException {
DbxClientV2 client = getUserDropboxAccess(user);
SharedFolderMetadata folderMetadata = getSharedFolderMetadata(client, folderApiId);
List<AddMember> members = emails.stream().map(email -> new AddMember(MemberSelector.email(email), AccessLevel.EDITOR)).collect(Collectors.toList());
client.sharing().addFolderMemberBuilder(folderMetadata.getSharedFolderId(), members).withQuiet(true).start();
}Здравко
4 years agoLegendary | Level 20
In such case, the only reason can be you have set different email in 'emails' parameter that the one you're exploring. You may have added or remuved some letter/digit or incorectly set some symbols (digit zero and letter O looks pretty similar on some fonts for instance). 🤔 Make sure there are missing such mistakes (it's possible file/folder to be shared even to non existing account without error).
Good luck.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!