Skip to content

How to handle multiple accounts? #168

Description

@bluenote10

I use multiple Dropbox accounts for different purposes. How does the OAuth authenciation decide which of my accounts it is authorizing against? Or how can I control which one is used?

Activity

  1. WillFantom commented on May 14, 2021

    @WillFantom

    I know this isn't too helpful given the activity on this repo from Dropbox seems pretty minimal... But I added a PR (#165) that would allow for multiple user accounts to be defined in the configuration file and selected via a --profile <> flag...

  2. AndreyVMarkelov commented on Jun 17, 2026

    @AndreyVMarkelov
    Contributor

    This is addressed by DBXCLI_AUTH_FILE. The OAuth flow authorizes whichever Dropbox account is active during login, and DBXCLI_AUTH_FILE lets each account use a separate credentials file, for example DBXCLI_AUTH_FILE=~/.config/dbxcli/personal.json dbxcli login and DBXCLI_AUTH_FILE=~/.config/dbxcli/work.json dbxcli login. Closing this as addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions