Hey guys,
I am working on a project and I am using a "TEST" user source for creating Roles and Users. I have used a User Management component to see all the users like shown below:
I am logging in as the Administrator in both the Designer and Client. I am able to interact with the component via preview mode in the designer but when I try doing the same in the Client, it has an overlay for "Uncertain".
I see UserManagementPanel Error in the Log viewer like so:
Message: Unable to describe user profile "TEST"
Time: Fri Jun 16 3:57:02PM
Severity: ERROR
Logger: Vision.Components.UserManagementPanel
Stack Trace: java.util.concurrent.ExecutionException: com.inductiveautomation.ignition.client.gateway_interface.GatewayException: Error executing function 'Users.describeUserSource': The current user does not have the required roles for this operation.< <br> at java.base/java.util.concurrent.FutureTask.report(Unknown Source) <br> at java.base/java.util.concurrent.FutureTask.get(Unknown Source) <br> at java.desktop/javax.swing.SwingWorker.get(Unknown Source) <br> at com.inductiveautomation.factorypmi.application.components.UserManagementPanel\$DescribeUserProfileTask.done(UserManagementPanel.java:437) <br> at java.desktop/javax.swing.SwingWorker\$5.run(Unknown Source) <br> at java.desktop/javax.swing.SwingWorker\$DoSubmitAccumulativeRunnable.run(Unknown Source) <br> at java.desktop/sun.swing.AccumulativeRunnable.run(Unknown Source) <br> at java.desktop/javax.swing.SwingWorker\$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source) <br> at java.desktop/javax.swing.Timer.fireActionPerformed(Unknown Source) <br> at java.desktop/javax.swing.Timer\$DoPostEvent.run(Unknown Source) <br> at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source) <br> at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source) <br> at java.desktop/java.awt.EventQueue\$4.run(Unknown Source) <br> at java.desktop/java.awt.EventQueue\$4.run(Unknown Source) <br> at java.base/java.security.AccessController.doPrivileged(Native Method) <br> at java.base/java.security.ProtectionDomain\$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) <br> at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source) <br> at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) <br> at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) <br> at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) <br> at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) <br> at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) <br> at java.desktop/java.awt.EventDispatchThread.run(Unknown Source) <br>Caused by: com.inductiveautomation.ignition.client.gateway_interface.GatewayException: Error executing function 'Users.describeUserSource': The current user does not have the required roles for this operation. <br> at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.newGatewayException(GatewayInterface.java:351) <br> at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.sendMessage(GatewayInterface.java:325) <br> at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.sendMessage(GatewayInterface.java:278) <br> at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.invoke(GatewayInterface.java:954) <br> at com.inductiveautomation.factorypmi.application.components.UserManagementPanel\$DescribeUserProfileTask.doInBackground(UserManagementPanel.java:425) <br> at com.inductiveautomation.factorypmi.application.components.UserManagementPanel\$DescribeUserProfileTask.doInBackground(UserManagementPanel.java:414) <br> at java.desktop/javax.swing.SwingWorker\$1.call(Unknown Source) <br> at java.base/java.util.concurrent.FutureTask.run(Unknown Source) <br> at java.desktop/javax.swing.SwingWorker.run(Unknown Source) <br> at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) <br> at java.base/java.util.concurrent.ThreadPoolExecutor\$Worker.run(Unknown Source) <br> at java.base/java.lang.Thread.run(Unknown Source) <br>Caused by: com.inductiveautomation.ignition.client.gateway_interface.GatewayResponse\$GatewayThrowable: The current user does not have the required roles for this operation. <br> at com.inductiveautomation.ignition.gateway.servlets.Gateway.doPost(Gateway.java:430) <br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:523) <br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:590) <br> at com.inductiveautomation.ignition.gateway.bootstrap.MapServlet.service(MapServlet.java:86) <br> at org.eclipse.jetty.servlet.ServletHolder\$NotAsync.service(ServletHolder.java:1410) <br> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764) <br> at org.eclipse.jetty.servlet.ServletHandler\$ChainEnd.doFilter(ServletHandler.java:1665) <br> at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527) <br> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131) <br> at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578) <br> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) <br> at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223) <br> at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1570) <br> at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) <br> at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1383) <br> at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176) <br> at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484) <br> at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1543) <br> at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174) <br> at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1305) <br> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129) <br> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) <br> at com.inductiveautomation.catapult.handlers.RemoteHostNameLookupHandler.handle(RemoteHostNameLookupHandler.java:121) <br> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) <br> at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:301) <br> at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:51) <br> at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:141) <br> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) <br> at org.eclipse.jetty.server.Server.handle(Server.java:563) <br> at org.eclipse.jetty.server.HttpChannel.lambda\$handle\$0(HttpChannel.java:505) <br> at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:762) <br> at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:497) <br> at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282) <br> at org.eclipse.jetty.io.AbstractConnection\$ReadCallback.succeeded(AbstractConnection.java:314) <br> at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) <br> at org.eclipse.jetty.io.SelectableChannelEndPoint\$1.run(SelectableChannelEndPoint.java:53) <br> at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:416) <br> at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:385) <br> at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:272) <br> at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda\$new\$0(AdaptiveExecutionStrategy.java:140) <br> at org.eclipse.jetty.util.thread.ReservedThreadExecutor\$ReservedThread.run(ReservedThreadExecutor.java:411) <br> at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:934) <br> at org.eclipse.jetty.util.thread.QueuedThreadPool\$Runner.run(QueuedThreadPool.java:1078) <br> at java.lang.Thread.run(null) <br>
I did some basic troubleshooting where I am printing the username, role, quality and data quality of the user management component. In designer I am getting data quality as 192 and quality as 'good'. But for client I am getting it as 600 and "Uncertain":
Can anyone please help me on how to resolve this.