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?