Is there a way to make the card not clickable on the dashboard. Intention is to provide users only access to view the dashboard and prevent them from actually going into the question and making changes. Also this will indirectly help us prevent the downloading of the data
You can make the users part of a group that doesn’t have permissions to change elements in the collection, which means they cannot edit anything (dashboard/question):
Or use Public sharing or Embedding instead, which doesn’t have drill-through:
I tried that but not sure why it is not working.
Here are the steps.
- I created a new User Group -TestGroup and a new user ‘email@example.com’
- I removed all the access to ‘All Users’ Group. i.e changed Data Access to ‘X’ and SQL Queries to ‘X’
- I also removed all the access to ‘TestGroup’ exactly as above.
- In Collection permissions I gave both ‘All Users’ and ‘TestGroup’ only ‘Can View Access’
Still when I login with test user I am able to view the dashboard, I can click on the card, it takes me to the question and allows me to download. Only thing which seemed to have worked is, there is no option to edit the dashboard.
What am I doing wrong? do I need to restart the server to make the settings work?
@jiwnaiakbar If you don’t want the users to be able to go to a question, then use Public or Embedding.
I remember with this setting I was able to restrict the access. I.e. when user was clicking on the card they use to see error message with lock keys image saying Sorry you dont have permission to see that’. Is that option removed?
Just to clarify I am looking to do following:
- Members of a specific group should be able to view the dashboard but not edit
- When they click on the card, they should get the message like above.
And I know this worked before in another application I had created.
Thanks for the reply but I am confused.
Please can you help me understand what happens when I revoke entire database access for a user group? Shouldn’t it completely stop user from view anything related that table?. Right now I have completely revoked access for TestUser group and AllUsers user group. Still when I login with id which belongs to TestUser group, I can view the dashboard and I can click the card.
Here are the screenshots:
In the above setting, if am logging in with firstname.lastname@example.org, I can still do everything below:
- View the dashboard
- Click the cards on the dashboard
- Download the data.
- It restricts -Edit dasbhoard & edit question.
Based on documentation and what you have mentioned above, one of the following should have happened:
- None of the card values should have been visible to the user
- When user clicks on the card, he should get a error ‘You dont have access’
I just verified in another system and this is exactly how it works. In the log i can actually see the error “You don’t have permissions to do that.”.
What am I missing?
When you revoke data permissions, then the group cannot create new queries.
When you revoke collection permissions, then the group does not have access to anything inside of that collection.
Yeah, the documentation needs updating.
Oh… Does it mean the behaviour has changed in new version? If I want that functionality, then I need to switch to older version?
@jiwnaiakbar That was a bug - actually several, across multiple different version. There has been no change to how the intended behavior works.
vow bug actually was a nice feature for us. Because that way were allowing user to view the data in dashboard but restricting them from actually downloading it when the clicked on the card
So now I am restricted to 2 options
- Create a public link. This means that anyone with the link can view the data. I can’t do this it becomes too shareable
- Embed in applications. This will require me to create a new application with separate user authentication and use the embed feature. I do not have skill to do these. By any chance is there a open source application which does this so that i can directly use it?
You can block the block requests to /api/card/:card-id/query/:export-format via a reverse-proxy, which prevents downloads.
Any visualizations are downloaded in JSON format to be shown visually, so unless you have more than 10,000/2,000 results, then the user would be able to “download” that data through their browser developer console.
This will then be applicable to all the users right?
Yes. I agree to second point. However, most of our users wont have skills to go to that level. If there is download option, they will click and download if there isn’t any then they probably wont go extra step to figure out other options
@jiwnaiakbar It would apply to everyone accessing through that reverse-proxy. There’s a lot of advanced stuff that can be done, so it only applies in specific situations, but to keep it simple: Yes, it applies to everyone.
Any sample code for Ubuntu? may be put in condition
Also any sample application to use embedding option?
@jiwnaiakbar There’s plenty of web servers that can be setup as reverse-proxies - it doesn’t have anything to do with Ubuntu: Nginx, Caddy, Apache, HaProxy, etc.
Use the power of the internet to find the one you prefer and lookup it’s documentation.
There’s examples of embedding here: