Skip to content

Job run URL doesn't work for permitted users #5142

@frankbarten

Description

@frankbarten

Describe the issue

The job URL printed by the CLI doesn't bring all permitted users to the job run in the UI, but brings some users to the homepage instead.

Configuration

The users impacted by this have the following entitlements via their group membership:

  • Databricks SQL Access
  • Consumer access

Furthermore, they have the following permission set on the resources in the bundle (which includes the job):

  • CAN_VIEW

Steps to reproduce the behavior

  1. Set up a user with permissions as above
  2. Create a job resource in DAB
  3. Deploy the bundle
  4. Run databricks bundle run <job>
  5. It will print the job run URL in this format:
    Run URL: [DATABRICKS_URL]/?o=[NUMID]#job/[JOB_ID]/run/[RUN_ID]

Expected Behavior

When any user who has permission to view the job clicks on the URL, they are brought to the job run in the UI.

Actual Behavior

  • When users with the permissions configured as above try to open this URL, it brings them to the homepage of the workspace.

Additional behavior found:

  • When admin users open the same URL, it resolves to a URL in this format: [DATABRICKS_URL]/jobs/[JOB_ID]/runs/[RUN_ID]?o=[NUMID], and they can see the job run in the UI. (this part is as expected)
  • When the users with the permissions configured as above use the resolved URL (e.g. because an admin gave them that URL or they manually modfied the URL format), it works fine for them as well.

OS and CLI version

OS: Linux
CLI version: v0.297.2

Is this a regression?

AFAIK not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DABsDABs related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions