Skip to content

Dashboard owner/run_as conflict #4394

@kmarq

Description

@kmarq

Describe the issue

DAB deployment for dashboard is failing if the bundle has a run_as user set that is different than the ID for the deployment.
Error: dashboards do not support a setting a run_as user that is different from the owner.

Run Identity documentation calls out model serving but not dashboards as an exception so I did not expect this behavior.
https://docs.databricks.com/aws/en/dev-tools/bundles/run-as

Configuration

Any dashboard with a run_as defined in the bundle that is different than the user running it.
targets:
test:
run_as:
service_principal_name: ${var.spn_etl_id}
resources:
dashboards:
example_dashboard:
display_name: "example_dashboard"
file_path: ./example_dashboard.lvdash.json

Steps to reproduce the behavior

Please list the steps required to reproduce the issue, for example:

  1. Run Databricks bundle deploy or validate against the target with a run_as defined

Expected Behavior

Dashboard would deploy, owned by the ID running the deployment and have no interaction with the run_as setting since the dashboard (especially with embed_credentials: false) does not need to use the run_as identity at all.

Actual Behavior

Error message:
Error: dashboards do not support a setting a run_as user that is different from the owner.

OS and CLI version

Linux: Debian GNU/Linux 13
CLI: v0.286.0 & CLI v0.283.0

Is this a regression?

No

Debug Logs

Output logs if you run the command with debug logs enabled. Example: databricks bundle deploy --log-level=debug. Redact if needed

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