ERROR(500): Error executing function 'RunQuery': The current user does not have the required roles for this operation

Hi I get an error when I try to see the data from my db on runtime, but it works in the designer, this is the error.

	ERROR(500): Error executing function 'RunQuery': The current user does not have the required roles for this operation.
com.inductiveautomation.ignition.gateway.servlets.gateway.functions.GatewayFunctionException: The current user does not have the required roles for this operation.

at com.inductiveautomation.ignition.gateway.servlets.Gateway.doPost(

at javax.servlet.http.HttpServlet.service(

at javax.servlet.http.HttpServlet.service(

at com.inductiveautomation.ignition.gateway.bootstrap.MapServlet.service(

at org.eclipse.jetty.servlet.ServletHolder.handle(

at org.eclipse.jetty.servlet.ServletHandler.doHandle(

at org.eclipse.jetty.server.handler.ScopedHandler.handle(


at org.eclipse.jetty.server.session.SessionHandler.doHandle(

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(

at org.eclipse.jetty.servlet.ServletHandler.doScope(

at org.eclipse.jetty.server.session.SessionHandler.doScope(

at org.eclipse.jetty.server.handler.ContextHandler.doScope(

at org.eclipse.jetty.server.handler.ScopedHandler.handle(

at org.eclipse.jetty.server.handler.HandlerList.handle(

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(

at org.eclipse.jetty.server.Server.handle(

at org.eclipse.jetty.server.HttpChannel.handle(

at org.eclipse.jetty.server.HttpConnection.onFillable(




at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(


at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(

at org.eclipse.jetty.util.thread.QueuedThreadPool$

at Source)


Do you have security set on this table? Are you logged in as the same user in the runtime client?

1 Like

I dont have security on the table, I reinstalled ignition and I get the error again. The user is default “admin” “password”.

1 Like

As of Ignition 7.9.4 there’s a new set of client scoped permissions that prevent even authenticated clients, by default, from changing anything on the gateway.


And the tl;dr here is that security is turned on by default for new projects.


Thanks, I turned on all the permissions and it works.

1 Like

Just to be more clear: In Designer Version 8, choose Project | Project Properties. Once open choose Permissions under Vision then check the box that says Legacy Databases.


Just to clarify things a bit further for everyone…

This video explains client permissions which are disabled by default after version 7.9.4. Checking the box ‘Legacy Database Access’ allows client database access outside of named queries and transaction groups. You should try to only use named queries and transaction groups where possible for security reasons.

The biggest confusion is the videos aren’t made for version 8.0 in my opinion.

Legacy DB Access got it working immediately. TYVM!