cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

DataBricks best practice to manage resource correspond deleted user

Trung
Contributor

currently I have some prblem about my DataBricks workspace when an user was deleted and it cause some issue:

  1. Applications or scripts that use the tokens generated by the user will no longer be able to access the Databricks API
  2. Jobs owned by the user will fail
  3. Clusters owned by the user will stop
  4. Queries or dashboards created by the user and shared using the Run as Owner credential will have to be assigned to

How can I keep these resources operate normally?

1 ACCEPTED SOLUTION

Accepted Solutions

Vivian_Wilfred
Databricks Employee
Databricks Employee

Hi @trung nguyenโ€‹ All of the above are consequences of a user getting deleted. This cannot be avoided and it is expected. Before deleting the user, transfer ownership, clone the clusters, clone the jobs, and make necessary changes to keep the resources prepared for user/owner deletion.

https://docs.databricks.com/workflows/jobs/jobs.html#clone-a-job

https://docs.databricks.com/clusters/clusters-manage.html#clone-a-cluster

https://docs.databricks.com/sql/user/security/access-control/query-acl.html

You could also create a service account for managing important resources instead of using a user account.

Let me know if this helps. Please mark this comment as "best answer" to resolve the query.

View solution in original post

2 REPLIES 2

Vivian_Wilfred
Databricks Employee
Databricks Employee

Hi @trung nguyenโ€‹ All of the above are consequences of a user getting deleted. This cannot be avoided and it is expected. Before deleting the user, transfer ownership, clone the clusters, clone the jobs, and make necessary changes to keep the resources prepared for user/owner deletion.

https://docs.databricks.com/workflows/jobs/jobs.html#clone-a-job

https://docs.databricks.com/clusters/clusters-manage.html#clone-a-cluster

https://docs.databricks.com/sql/user/security/access-control/query-acl.html

You could also create a service account for managing important resources instead of using a user account.

Let me know if this helps. Please mark this comment as "best answer" to resolve the query.

Trung
Contributor

@Vivian Wilfredโ€‹ it really useful for my case, many thanks!

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