We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

sbrownnw's avatar
sbrownnw
Explorer | Level 4
2 years ago

free account App API Root access still remains the same after merging with paid account

Started with a free Dropbox account that I setup an App for and was able to generate manual auth tokens to access it using the Dropbox .Net API.  Everything worked as expected with App API "Root" access being the topmost folder.

 

Then a paid Dropbox account was setup and I was invited to join that paid account.  My original "Free App" for token auth and API usage was brought along plus a new App was setup with Full Dropbox access:

No matter which App I use (the previous free App or the new Full Dropbox access App), when I generate a token manually under that app, my default user folder is always treated as "root" as circled below:

How do I access other folders that I have access to in the Dropbox web UI (pictured below) when my root is always my topmost user folder?

Again, I tested with an auth token that had Full Dropbox App Scope and Access.

  • Hi sbrownnw,


    sbrownnw wrote:

    ...

    No matter which App I use (the previous free App or the new Full Dropbox access App), when I generate a token manually under that app, my default user folder is always treated as "root" as circled below: ...


    No you have a wrong assumption! Dropbox application always gets access to users home directory by default (if nothing else has been set), wherever it is. The same is valid starting from individual free, paid,.. up to advanced plan - always the same. The difference is that for all individual plans home folder coincide with the account root, but for Business plans it's not always true (as shown on the examples you provided). In some cases user folder appear a subfolder of the root and in such a case you only have access to this folder, but not to the others subfolders of the root - by default.

    To get access to there you have to change the default namespace (home) in use to the root one. For more info about namespaces nature and management take a look here. In DotNet environment you can use something like following to do the described in referred help article:

    client = client.WithPathRoot(new PathRoot.Root(account.RootInfo.RootNamespaceId));

     Hope this helps.

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

    Hi sbrownnw,


    sbrownnw wrote:

    ...

    No matter which App I use (the previous free App or the new Full Dropbox access App), when I generate a token manually under that app, my default user folder is always treated as "root" as circled below: ...


    No you have a wrong assumption! Dropbox application always gets access to users home directory by default (if nothing else has been set), wherever it is. The same is valid starting from individual free, paid,.. up to advanced plan - always the same. The difference is that for all individual plans home folder coincide with the account root, but for Business plans it's not always true (as shown on the examples you provided). In some cases user folder appear a subfolder of the root and in such a case you only have access to this folder, but not to the others subfolders of the root - by default.

    To get access to there you have to change the default namespace (home) in use to the root one. For more info about namespaces nature and management take a look here. In DotNet environment you can use something like following to do the described in referred help article:

    client = client.WithPathRoot(new PathRoot.Root(account.RootInfo.RootNamespaceId));

     Hope this helps.