Major issue: Can't use filters or convert questions to SQL despite being the administrator

Hi there,

I'm issues which I believe are linked:

  1. If I create a question and then convert it to SQL, if I hit run it will throw an error ' Sorry, you don’t have permission to see that.'

  2. If I write SQL to filter a field, for example:

SELECT *
FROM REVIEWS
[[WHERE UPPER(Body) LIKE UPPER(CONCAT('%', {{search_term}}, '%'))]]

source: https://www.metabase.com/learn/basics/questions/searching-tables

This will throw the same error - it will lock me out and return ' Sorry, you don’t have permission to see that.'

How can I resolve this issue? I am the administrator and I have full collection and SQL permissions for all data sources. It is a requirement to have the ability to search string fields for matches.

Hi @bhavesh
Post "Diagnostic Info" from Admin > Troubleshooting.
I have never heard of this problem for an admin user.

Hi, thank you for your reply.

This is the extract:
{
"browser-info": {
"language": "en-GB",
"platform": "MacIntel",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.11+9-post-Debian-1deb10u1",
"java.vendor": "Debian",
"java.vendor.url": "https://tracker.debian.org/openjdk-11",
"java.version": "11.0.11",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.11+9-post-Debian-1deb10u1",
"os.name": "Linux",
"os.version": "4.19.0-16-cloud-amd64",
"user.language": "en",
"user.timezone": "Etc/UTC"
},
"metabase-info": {
"databases": [
"postgres",
"bigquery"
],
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "13.2"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.2.18"
}
},
"run-mode": "prod",
"version": {
"date": "2021-05-27",
"tag": "v0.39.3",
"branch": "release-x.39.x",
"hash": "598a112"
},
"settings": {
"report-timezone": null
}
}
}

@bhavesh My first guess is that you're using some reverse-proxy that is changing the response.
https://www.metabase.com/docs/latest/troubleshooting-guide/proxies.html