rapidbisupport
11-21-2023Data Pipeline
Hi dirons,
The above sounds like it would save a heap of time, especially if it was incorporated on an interface level.
I can suggest a workaround in the interim here, a dashboard script that will hide the button if the logged in user exists in a list of predefined groups.
You'll need to populate 'groupsWithNlqDisabled' with the group ids that you'd like to disable Simply Ask for.
let groupsWithNlqDisabled = ['650102a9c4cf84c6765c6752', 'groupid2', 'groupid3']
dashboard.on('initialized', (dashboard)=> {
if (prism.user.groups.some((g)=> groupsWithNlqDisabled.includes(g))) {
$('.nlq-main-button').hide()
}
})
Let me know if this works for you in the interim?
Thanks,
Daniel
daniel.ranisavljevic@rapidbi.com.au
RAPID BI
RAPID BI - Your Sisense partner in Business Intelligence, Dashboarding and Analytics