为工作区启用作业访问控制Enable jobs access control for your workspace

备注

访问控制仅在 Azure Databricks Premium 计划中可用。Access control is available only in the Azure Databricks Premium Plan.

作业启用访问控制可以使作业所有者控制哪些用户可以查看作业结果或管理作业的运行。Enabling access control for jobs allows job owners to control who can view job results or manage runs of a job. 本文介绍如何启用作业访问控制,以及如何防止用户看到他们无权访问的作业。This article describes how to enable jobs access control and how to prevent users from seeing jobs they don’t have access to.

有关分配权限和配置作业访问控制的信息,请参阅作业访问控制For information about assigning permissions and configuring jobs access control, see Jobs access control.

启用作业访问控制Enable jobs access control

  1. 转到管理控制台Go to the Admin Console.

  2. 选择“访问控制”选项卡。Select the Access Control tab.

    “访问控制”选项卡Access control tab

  3. 单击“群集、池和作业访问控制”旁边的“启用”按钮 。Click the Enable button next to Cluster, Pool and Jobs Access Control.

    启用访问控制Enable access control

  4. 单击“确认” 。Click Confirm.

防止用户看到他们无权访问的作业 Prevent users from seeing jobs they do not have access to

备注

默认情况下,发布 Azure Databricks 平台 3.34 版(于 2020 年 12 月发布)之后创建的工作区的作业可见性控制处于启用状态。Job visibility control is enabled by default for workspaces created after the release of Azure Databricks platform version 3.34 (released in December 2020). 如果工作区是在此之前创建的,则管理员必须启用该功能。If your workspace was created earlier, an admin must enable the feature.

作业访问控制本身不会阻止用户看到 Azure Databricks UI 中显示的作业,即使用户没有这些作业的权限也是如此。Jobs access control by itself does not prevent users from seeing jobs displayed in the Azure Databricks UI even when the users have no permissions on those jobs. 若要防止用户看到这些作业,请执行以下操作:To prevent these jobs from being visible to a user:

  1. 转到管理控制台Go to the Admin Console.
  2. 选择“访问控制”选项卡。Select the Access Control tab.
  3. 单击“作业可见性控制”旁边的“启用”按钮 。Click the Enable button next to Job Visibility Control.
  4. 单击“确认” 。Click Confirm.

若要禁用作业可见性控制,请使用相同的过程,在第三步中单击“禁用”。To disable job visibility control, use the same procedure, clicking Disable in the third step.