We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more 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 ?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    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

      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 Staff rankDropbox Staff

        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.