<h2 dir="auto">Problem</h2>
<p dir="auto">I build dashboards on a “dev” instance, export them, and import the archive on the “prod” one; all via CLI.<br>
I grant access to these dashboards to certain roles using RBAC — i.e. I edit dashboard properties and add one (or more) user group(s) to the “Role” selector (e.g. <code class="notranslate">guest</code> in the example below):</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37387755/144847565-b01a7b74-e9be-4d95-8533-772d6f727093.png"><img src="https://user-images.githubusercontent.com/37387755/144847565-b01a7b74-e9be-4d95-8533-772d6f727093.png" alt="bépobépo_shadow" style="max-width: 100%;"></a></p>
<p dir="auto">However, <strong>the dashboard's YAML file in the export does not include any mention of the role(s) I grant access to</strong>.</p>
<p dir="auto">So I then need to grant access to these roles again, after the exported archive get imported on “prod”.</p>
<h2 dir="auto">Wished solution</h2>
<p dir="auto">I would like that <strong>the imported dashboards grant the same RBAC authorisations as their exported counterpart</strong>.</p>
<p dir="auto">Practically, this means that I would like to:</p>
<ul dir="auto">
<li>be able to track RBAC roles on the YAML file of an exported dashboard,</li>
<li>be able to set RBAC roles of an imported dashboard, based on the imported YAML file data.</li>
</ul>
<h2 dir="auto">Alternative</h2>
<p dir="auto">Manual work… but I'm afraid I'm lazy <g-emoji class="g-emoji" alias="wink" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f609.png">😉</g-emoji></p>
<h2 dir="auto">Additional context</h2>
<p dir="auto">Both dev and prod are running Superset 1.3.2, alongside the following feature flags:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="FEATURE_FLAGS = {
    &quot;VERSIONED_EXPORT&quot;: True,
    &quot;DASHBOARD_RBAC&quot;: True,
}"><pre class="notranslate"><span class="pl-v">FEATURE_FLAGS</span> <span class="pl-c1">=</span> {
    <span class="pl-s">"VERSIONED_EXPORT"</span>: <span class="pl-c1">True</span>,
    <span class="pl-s">"DASHBOARD_RBAC"</span>: <span class="pl-c1">True</span>,
}</pre></div>
<p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if any</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar</li>
</ul>
<h3 dir="auto">Superset version</h3>
<p dir="auto">23.3</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">Dashboard with chart inside</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">When I create a new dashboard it appears empty, to circumvent this problem I have to add manually [] in the "Position JSON" field.</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Create a new dashboard or create a new chart and add to a new dashboard</p>