Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API to get current user for Account Client #609

Open
antsok opened this issue Apr 9, 2024 · 0 comments
Open

API to get current user for Account Client #609

antsok opened this issue Apr 9, 2024 · 0 comments

Comments

@antsok
Copy link

antsok commented Apr 9, 2024

Problem Statement
Given that there is an account-level identity (user or a service principal) with account admin permissions that is not granted access to any workspace,
When this identity is used by a pipeline,
We need to know the id of this identity (using the account client API), so that this id can be used in further API calls.

Currently, CurrentUserAPI is only available for workspace client, so there seems to be no way of finding out Databricks identity Id. We have to hardcode it.

Proposed Solution
Make something like CurrentUserAPI also available in account client, and make it work for users and service principals.

Additional Context
Add any other context, references or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant