Given user id, what API can we use to find out which cluster the user is connected to?

whh99
New Contributor II

I want to know the cluster that user is connected to in databricks. It would be great if we can also get the duration that the user is connected.

daniel_sahal
Databricks MVP

You can track activity logs by activating audit logs.

I'm not sure which cloud provider you're using, but ex. for Azure you can find a manual here:

https://learn.microsoft.com/en-us/azure/databricks/administration-guide/account-settings/audit-logs

whh99
New Contributor II

I'm looking at a solution that is able to track activity logs for multiple workspace at once (all of the databrick resources under the organisation). This looks like it's specific to one workspace.