Jira admins must grant the rest of the users with Global permission.
...
In spite of all the queries can be executed safely by anyone in questions the question of results, there are some measures of admin control. Constraints are applied for writing queries from the console and gadgets, and running queries from third-party tools. Jira Administrator can configure who can do it via global permissions:
...
Users granted that global permission “SQL Cloud Write” are able to access the built-in SQL Cloud Query console, write their queries and use all its instruments.
...
To be able to run a query in third-party-tool User need permission “SQL Cloud Share“ which gives access to SQL Cloud Server. , through which he can share queries using JDBC/ODATA/CSV