cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between username and account_id

edmundsecho
New Contributor II

I have a web app that can read files from a person's cloud-based drive (e.g., OneDrive, Google Drive, Dropbox).  The app gets access to the files using OAuth2. The app only ever has access to the files for that user.  Part of the configuration requires that I register my web app with the cloud-based drive provider. 

I'm looking at the databricks sdk docs to figure out how to accomplish the same.  In this case, the app would gain access to the tables where the user has a select grant.  The scope of the ask would include `sql`.  I'm trying to figure out how to register my client app with databricks.  To that end, I wonder what the difference is between the account_id and username.  Are all usernames guaranteed to be unique when logging into databricks?  If so, that would be sufficient to identify what privileges that user/principal has.  And thus, what is the purpose of account_id? 

1 ACCEPTED SOLUTION

Accepted Solutions

Yeshwanth
Contributor III
Contributor III

Hey @edmundsecho 

Databricks Account Id: 

All the databricks workspaces will be linked to an Account and the account_id is the unique identifier for the Account.

Read more about Databricks Account here: https://docs.databricks.com/en/administration-guide/account-settings/index.html#manage-your-databric...

User name:

This doc will help you understand this better: https://docs.databricks.com/en/administration-guide/users-groups/users.html

View solution in original post

4 REPLIES 4

Yeshwanth
Contributor III
Contributor III

Hey @edmundsecho 

Databricks Account Id: 

All the databricks workspaces will be linked to an Account and the account_id is the unique identifier for the Account.

Read more about Databricks Account here: https://docs.databricks.com/en/administration-guide/account-settings/index.html#manage-your-databric...

User name:

This doc will help you understand this better: https://docs.databricks.com/en/administration-guide/users-groups/users.html

Kaniz
Community Manager
Community Manager

That’s a great tip! Thank you for sharing your knowledge with the community. I’m sure many people will find it helpful. Keep up the good work! 😊

Kaniz
Community Manager
Community Manager

Hey there! Thanks a bunch for being part of our awesome community! 🎉 

We love having you around and appreciate all your questions. Take a moment to check out the responses – you'll find some great info. Your input is valuable, so pick the best solution for you. And remember, if you ever need more help , we're here for you! 

Keep being awesome! 😊🚀

 

edmundsecho
New Contributor II

The provided links were helpful.  The take-away

* usernames are "globally" unique to an individual; the username is the person's email.

* a username can be associated with up to 50 accounts; account_ids track the resources available to the user.

This closes out on this question.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.