# Dashboard permissions using dashboard direct

**URL:** <https://forum.kx.com/t/dashboard-permissions-using-dashboard-direct/14025>\
**Category:** Community Support\
**Tags:** imported, dashboards\
**Created:** [August 13, 2024, 5:59am UTC](https://forum.kx.com/t/dashboard-permissions-using-dashboard-direct/14025 "2024-08-13T05:59:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![swapnil.kulkarni](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/swapnil.kulkarni/32/128_2.png) [@swapnil.kulkarni](https://forum.kx.com/u/swapnil.kulkarni)\
**Post date:** [August 13, 2024, 5:59am UTC](https://forum.kx.com/t/dashboard-permissions-using-dashboard-direct/14025/1 "2024-08-13T05:59:41Z")

</div>

[https://learninghub.kx.com/forums/topic/dashboard-permissions-using-dashboard-direct](https://learninghub.kx.com/forums/topic/dashboard-permissions-using-dashboard-direct)

Hi

I am trying to implement user permissions for kxDashboards by incorporating the code at https://github.com/davidcrossey/dash-direct-perms/tree/main

It seems to work ok for non admin user role. However, when an admin logs in, it lands on the error dashboard which does not seem correct.

Has someone faced a similar issue before? Seems to be some basic config issue but don't know what it can be

---

<div class="post-metadata">

**Author:** ![dcrossey2](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@dcrossey2](https://forum.kx.com/u/dcrossey2)\
**Post date:** [August 13, 2024, 2:24pm UTC](https://forum.kx.com/t/dashboard-permissions-using-dashboard-direct/14025/2 "2024-08-13T14:24:05Z")

</div>

Hi Swapnil,

IIRC, you should check you have a user in the admin usergroup and ensure they aren't also in the default restricted usergroup. The latter will direct you to the Error dashboard as that's to prevent non-defined users (and users added to the restricted group) from accessing any of the dashboards.

See this note: https://github.com/davidcrossey/dash-direct-perms/blob/main/README.md#accessing-the-dashboards-direct-application

Cheers,

David

---

<div class="post-metadata">

**Author:** ![swapnil.kulkarni](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/swapnil.kulkarni/32/128_2.png) [@swapnil.kulkarni](https://forum.kx.com/u/swapnil.kulkarni)\
**Post date:** [August 14, 2024, 12:03am UTC](https://forum.kx.com/t/dashboard-permissions-using-dashboard-direct/14025/3 "2024-08-14T00:03:14Z")

</div>

Hi David

Thanks for your response. I played around with the config and the way I got it working is by changing the permissions of the error dashboard to restricted group.

So in dashboards.csv, if I change the below entry from

dashboard,usergroups

10ec73be-e822-7e49-1159-037697f15bf1,admin

to

dashboard,usergroups

10ec73be-e822-7e49-1159-037697f15bf1,restricted

Not sure if this is the right way, but thats the only way i have found it to be working.

---

<div class="post-metadata">

**Author:** ![dcrossey2](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@dcrossey2](https://forum.kx.com/u/dcrossey2)\
**Post date:** [August 14, 2024, 12:53am UTC](https://forum.kx.com/t/dashboard-permissions-using-dashboard-direct/14025/4 "2024-08-14T00:53:14Z")

</div>

Ah sorry, I'm re-reading your original post.

Your admin user lands on the Error page, because they are permissioned to view that dash, and that happens to be the dashboard in the list (.api.dashList).

You can change the 'home' dashboard screen to another by re-ordering the above variable for the 'admin' usergroup, or leave your workaround change. It just means that the 'admin' usergroup won't be able to edit the Error dashboard (if you need to)

---

<div class="post-metadata">

**Author:** ![swapnil.kulkarni](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/swapnil.kulkarni/32/128_2.png) [@swapnil.kulkarni](https://forum.kx.com/u/swapnil.kulkarni)\
**Post date:** [August 14, 2024, 11:57pm UTC](https://forum.kx.com/t/dashboard-permissions-using-dashboard-direct/14025/5 "2024-08-14T23:57:26Z")

</div>

Thanks David
