03-24-2024 08:08 AM
I need to get the notebook owner using api or some other way by passing notebook path as parameter.
03-31-2024 11:12 PM
Hi @RahulChaubey , Hope you are doing well!
I understand your ask but we would like to inform you that there is no direct API to get the owner of a notebook using the notebook path in Databricks. However, you can manually check the owner of the notebook by the notebook name. You can manually go to the folder where the notebook is located and check the owner of that notebook as you can see in the below image :
Also as an alternative way, you can enable audit logging: https://docs.databricks.com/en/administration-guide/account-settings/audit-log-delivery.html and once that is done, you can then track subsequent actions on notebooks: https://docs.databricks.com/en/administration-guide/account-settings/audit-logs.html#notebook
Please let me know if this helps and leave a like if this information is useful, followups are appreciated.
Kudos
Ayushi
03-31-2024 12:23 PM
Hi @Retired_mod ,
This method will give user for the current notebook we are using to run this command but I need to get the username for the notebooks using their paths which i am getting for the running jobs using api: /api/2.1/jobs/runs/list.
I have notebook paths for multiple notebooks and i want to get the owner's username from these paths
03-31-2024 11:12 PM
Hi @RahulChaubey , Hope you are doing well!
I understand your ask but we would like to inform you that there is no direct API to get the owner of a notebook using the notebook path in Databricks. However, you can manually check the owner of the notebook by the notebook name. You can manually go to the folder where the notebook is located and check the owner of that notebook as you can see in the below image :
Also as an alternative way, you can enable audit logging: https://docs.databricks.com/en/administration-guide/account-settings/audit-log-delivery.html and once that is done, you can then track subsequent actions on notebooks: https://docs.databricks.com/en/administration-guide/account-settings/audit-logs.html#notebook
Please let me know if this helps and leave a like if this information is useful, followups are appreciated.
Kudos
Ayushi
08-05-2024 12:18 AM
@Ayushi_Suthar Can you advise whether it's possible to make a request to add this feature? It would be incredibly useful for maintaining and auditing our notebooks
09-29-2024 02:33 AM
Did you find any solution to your problem?
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