You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Gags's avatar
Gags
Helpful | Level 6
2 years ago

Use RootNameSpaceId or HomeNameSapceId

Hello Greg-DB    We have developed a migration app that one of our customers used for migration files from Windows to Dropbox. The migration worked fine except that the files were migrated in a di...
  • Здравко's avatar
    2 years ago

    Gags wrote:

    ...

    Which one is used by default if we don't set  WithPathRoot - RootNameSpaceID or HomeNameSpaceID ?

    ...


    Hi Gags,

    By default 'HomeNameSpaceID' is in use when nothing set explicitly.

     


    Gags wrote:

    ...

    From what I  understand, we need to use HomeNameSpaceID if we need to create files and folders via Dropbox APIs in user's personal folders and RootNameSpaceID if we we want to create files and folders in user's team folders.  Is that correct ?

    ...


    Hm.. 🤔 No exactly. Yes, if you want to access everywhere particular user of your application has access to (including it's own folder), you have to set 'RootNameSpaceID'. If you want to have access to user's member folder only, you can use any of 'RootNameSpaceID' or 'HomeNameSpaceID' (or not set).

     


    Gags wrote:

    ...

    Please confirm which NameSpaceID to use in our case where we want to create file in User 's own personal folder for  both Team space and Team folder Dropbox Business configurations?

    ...


    As I said, you can use whatever you want (including not set anything at all). You should keep in mind that all path you will set in API calls to addressing files/folders will be relative to selected namespace (the home when nothing selected), something you, as seems, have ignored and that's where your issues are coming from.

    Here, if I have to bet, you want to use absolute account address (as seems). To achieve this it's convenient to always set 'RootNameSpaceID' regardless of actual account configuration. 😉

    Hope this helps.