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
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
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.
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)