The current does not have the required roles for this operation(tags error)

I am having an issue with ez chart displaying data using tags in vision. The tags all seem to work when in designer, but when the launch project is used to test, they stop working and produce the error below.

Message: Error running chart query.
Time: Wed Jul 26 3:18:59PM
Severity: ERROR
Logger: ignition.application.components.PMIEasyChart
Stack Trace: java.lang.Exception: Error running query:
TagHistory(paths=[histprov:Test_Tag_DB:/drv:ignition-opc0:infrastructure live tags:/tag:hvac/ir/irhvac_se/supply_temp_F, histprov:Test_Tag_DB:/drv:ignition-opc0:infrastructure live tags:/tag:hvac/ir/irhvac_sw/supply_temp_F, histprov:Test_Tag_DB:/drv:ignition-opc0:infrastructure live tags:/tag:hvac/ir/irhvac_ne/supply_temp_F, histprov:Test_Tag_DB:/drv:ignition-opc0:infrastructure live tags:/tag:hvac/ir/irhvac_nw/supply_temp_F, histprov:Infrastructure Live Tags:/prov:default:/tag:HVAC/IR/IRHVAC_SE/Condenser_Pwr, histprov:Infrastructure Live Tags:/prov:default:/tag:HVAC/IR/IRHVAC_SW/Condenser_Pwr, histprov:Infrastructure Live Tags:/prov:default:/tag:HVAC/IR/IRHVAC_NE/Condenser_Pwr, histprov:Infrastructure Live Tags:/prov:default:/tag:HVAC/IR/IRHVAC_NW/Condenser_Pwr, histprov:Infrastructure Live Tags:/prov:default:/tag:HVAC/IR/IR_Temperature_F, histprov:Infrastructure Live Tags:/prov:default:/tag:HVAC/IR/IR_DewPoint_F, histprov:Infrastructure Live Tags:/prov:default:/tag:HVAC/IR/IR_Humidity, histprov:Infrastructure Live Tags:/prov:default:/tag:HVAC/IR/IR_BaroPressure_inHg], start=Wed Jul 26 09:18:58 EDT 2023, end=Wed Jul 26 15:18:58 EDT 2023, flags=12)at 5000ms
On: IR HVAC.Datalogger.Easy Chart
    at com.inductiveautomation.factorypmi.application.gateway.QueryManager$QueryExecutor.run(QueryManager.java:311)
    at java.base/java.lang.Thread.run(Unknown Source)
Caused by: com.inductiveautomation.ignition.client.gateway_interface.GatewayException: Error executing function 'QueryTagHistory': The current user does not have the required roles for this operation.
    at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.newGatewayException(GatewayInterface.java:351)
    at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.sendMessage(GatewayInterface.java:325)
    at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.runTagHistoryQuery(GatewayInterface.java:789)
    at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.runTagHistoryQuery(GatewayInterface.java:757)
    at com.inductiveautomation.factorypmi.application.gateway.GwiTagHistoryProvider.query(GwiTagHistoryProvider.java:16)
    at com.inductiveautomation.ignition.common.sqltags.history.cache.TagHistoryCache.query(TagHistoryCache.java:211)
    at com.inductiveautomation.factorypmi.application.gateway.TagHistoryQuery.execute(TagHistoryQuery.java:34)
    at com.inductiveautomation.factorypmi.application.gateway.QueryManager$Query.execute(QueryManager.java:668)
    at com.inductiveautomation.factorypmi.application.gateway.QueryManager$QueryExecutor.run(QueryManager.java:308)
    ... 1 common frames omitted
Caused by: com.inductiveautomation.ignition.client.gateway_interface.GatewayResponse$GatewayThrowable: The current user does not have the required roles for this operation.
    at com.inductiveautomation.ignition.gateway.servlets.Gateway.doPost(Gateway.java:427)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at com.inductiveautomation.ignition.gateway.bootstrap.MapServlet.service(MapServlet.java:86)
    at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1450)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
    at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1631)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
    at com.inductiveautomation.catapult.handlers.RemoteHostNameLookupHandler.handle(RemoteHostNameLookupHandler.java:121)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
    at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322)
    at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:59)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
    at org.eclipse.jetty.server.Server.handle(Server.java:516)
    at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487)
    at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
    at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
    at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
    at java.lang.Thread.run(null)

You need to enable the tag history permission in the client permissions, in your project's properties.

Thanks that worked.

I'm a bit confused why this would be off by default, as this would trip up a lot of people, and is expected functionality of a scada client

New in 8.1.21, should be 'grandfathered' in for existing projects.
https://docs.inductiveautomation.com/display/DOC81/Vision+Project+Properties#VisionProjectProperties-VisionPermissionsProperties

It's off by default because of a security vulnerability.