cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
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
Honored Contributor

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
Honored Contributor

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

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_Fatma
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.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group