cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Whether you are transferring a single drive, a team or an entire organization, Movebot's cloud migration tool has been built to make your Dropbox migration simple - learn all about it here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Length of Dropbox account ID

Length of Dropbox account ID

TS L.
Explorer | Level 4

What is the length of Dropbox account ID. Is the lenght fixed or it may change?

1 Accepted Solution

Accepted Solutions

Re: Number of characters of Dropbox account ID

Greg-DB
Dropboxer

It looks like you're referring to using the official Dropbox API v2 Java SDK. Yes, the getAccountId method on the FullAccount object returned by getCurrentAccount would return the account ID for the connected user.

View solution in original post

9 Replies 9

Re: Length of Dropbox account ID

Jane
Dropboxer
Hey @TS L., it shouId be an integer value, however I believe that your inquiry echoes this discussion & pertains to the Dropbox API if I’m right in my understanding. If so, please feel free to ping me here & I’ll make sure to move your post under the relevant section on the Community. Thanks! 

 


Jane
Community Moderator @ Dropbox
dropbox.com/support

 

Heart Did this post help you? If so please give it a Like below. 
:white_check_mark: Did this post fix your issue/answer your question? If so please press the 'Accept as Best Answer' button to help others find it.
:arrows_counterclockwise: Still stuck? Ask me a question! (
Questions asked in the community will likely receive an answer within 4 hours!)

Re: Length of Dropbox account ID

TS L.
Explorer | Level 4
I like to know what is the value of the number of characters. Is the value always the same. Or it can be any value?

Number of characters of Dropbox account ID

TS L.
Explorer | Level 4

Kindly advise what is the number of characters of Dropbox Account ID.

Is the number  of characters  always the same for all the accounts?

Re: Number of characters of Dropbox account ID

Jane
Dropboxer

Thanks for circling back to us @TS L.! If it’s not too much trouble for you, can you clarify how you’d wish to utilize this info, so as to further advise on how you could about on this matter? 

 


Jane
Community Moderator @ Dropbox
dropbox.com/support

 

Heart Did this post help you? If so please give it a Like below. 
:white_check_mark: Did this post fix your issue/answer your question? If so please press the 'Accept as Best Answer' button to help others find it.
:arrows_counterclockwise: Still stuck? Ask me a question! (
Questions asked in the community will likely receive an answer within 4 hours!)

Re: Number of characters of Dropbox account ID

TS L.
Explorer | Level 4

In my app, I want to verify that the account number is valid. One of the criterial used in my app is to verify the number of characters. 

Re: Number of characters of Dropbox account ID

Greg-DB
Dropboxer

@TS L. The `account_id` value on the Dropbox API is always 40 characters long. 

You can that documented in `FullAccount.account_id`, for instance, as returned by /2/users/get_current_account:

account_id String(min_length=40, max_length=40)

Re: Number of characters of Dropbox account ID

TS L.
Explorer | Level 4

I used 

mDbxClient.users().getCurrentAccount().getAccountId()

 will that get the value `account_id`?

Re: Number of characters of Dropbox account ID

Greg-DB
Dropboxer

It looks like you're referring to using the official Dropbox API v2 Java SDK. Yes, the getAccountId method on the FullAccount object returned by getCurrentAccount would return the account ID for the connected user.

Re: Number of characters of Dropbox account ID

TS L.
Explorer | Level 4

Got it. Thank you.

Who's talking

Top contributors to this post

  • User avatar
    TS L. Explorer | Level 4
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?