We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

infra's avatar
infra
Explorer | Level 3
3 years ago

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 folder.
If i use a free account there is no problem.

 

Any idea ?

7 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with: 

    • the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
    • the full text of any error or unexpected output, a screenshot of the unexpected result/behavior, etc.

    Feel free to open an API ticket if you'd prefer to share privately.

  • infra's avatar
    infra
    Explorer | Level 3
    3 years ago

    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();
        }
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    Thanks for following up. To clarify though, can you show me what you're seeing exactly when you say "but the user has no access to it"? I'll need to make sure I understand exactly what result you're seeing and where to make sure I can reproduce the same thing and investigate this.

  • infra's avatar
    infra
    Explorer | Level 3
    3 years ago

    On the main account, used to share documents, we can see that the folder is shared with the user xxx@yyy.com

    However, the user xxx@yyy.com does not see the folder in his space.

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    3 years ago

    Hi infra,

    In spite the user xxx@yyy.com can't see the folder in his space, can the same user find it out in his shared folder list here? Check this out. 😉

    Hope this helps.

  • infra's avatar
    infra
    Explorer | Level 3
    3 years ago

    No sorry, the folder is not visible in the "share" section of the account xxx@yyy.com

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    3 years ago

    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

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 3 days ago
411 Following

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 or Facebook.

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!