cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Can we get notebook owner using notebook path as parameter in api ?

RahulChaubey
New Contributor III

I need to get the notebook owner using api or some other way by passing notebook path as parameter.

1 ACCEPTED SOLUTION

Accepted Solutions

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 : 

Ayushi_Suthar_0-1711951835149.png

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

View solution in original post

4 REPLIES 4

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 

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 : 

Ayushi_Suthar_0-1711951835149.png

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

Roy26
New Contributor II

@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

nkumar18
New Contributor II

Hi @RahulChaubey 

Did you find any solution to your problem?

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