THE ERROR: '' You do not have permissions to run native ad-hoc queries against database 3. ''
After upgrading the metabase to version 35.02, I am unable to save questions to my personal collection. But I have access to those tables. Would you help me?
My users, who do not have Query access to the database but have access to the tables, are also facing similar issues in our environment. I thought this was resolved according to this.
I don’t think I’ve ever seen that error before. Adding as text, so it can be searched in the future: You do not have permissions to run ad-hoc native queries against Database 9
Do you see more details in Admin > Troubleshooting > Logs? (I don’t expect it, just curious)
Can you provide a way to reproduce this? Meaning what permissions, question creation, and if possible use Sample Dataset as the test database, since we all have access to that.
@teja Can you provide steps to reproduce this? Can you post the query?
If the users don’t have access to the query, then it’s correct that they cannot save the question, but they shouldn’t even be able to get to that point.
@teja
This is really strange. With the amount of installations of Metabase, I don’t understand why this problem hasn’t happened more often. It must be some combination of factors that triggers this.
Which database type is “Dotcool”, Redshift?
And the users just have “Data Access” to the entire database, or only to specific tables?
Does this happen with all users on that database, or is it the specific tables, or specific filters that causes the error?
Yes, we are using Redshift for Dotcool.
All users just have access to few specific schemas in the database.
This is the first time that any user has posted this issue. Also, we are a small company, so I wonder how many non-admin users are actually creating their own reports. I am sorry that I couldn’t be of much help on how widely this issue persists.
@teja I’m not sure what the trigger is, but I haven’t been able to reproduce this at all. And I haven’t seen anyone (besides this forum topic) report this error.
You’re welcome to open an issue on this, but please try to explain in full details your permission levels and anything else you think might be helpful: https://github.com/metabase/metabase/issues/new/choose
@brunasiq I haven’t been able to reproduce this, but it would help if you posted “Diagnostic Info” from Admin > Troubleshooting, and provided steps to reproduce the issue or at least information about your database permissions (Admin > Permissions).
I have non-admin users who also have this same error. The only way I have found to circumvent the error is making the user an admin otherwise they get the error: "You do not have permissions to run ad-hoc native queries against Database {x}". I have verified that permissions exists for the user to run ad-hoc queries and full access to the database.
@wtomlinson If you could provide steps-to-reproduce, then it would be very helpful and then we would be able to get this issue fixed. I have tried multiple times, but I haven’t been able to nail this yet.
From your timezone, I’m guessing you’re in the US and so are your users, so I don’t think it’s a problem with languages in the interface.