jbertram commented on PR #4980: URL: https://github.com/apache/activemq-artemis/pull/4980#issuecomment-2174250407
I'm not in favor of this change. If you want output that's formatted clearly and in a way that can be parsed by scripts then I recommend the [management API](https://activemq.apache.org/components/artemis/documentation/latest/management.html#management). In this can you could invoke the [`listUser` operation on `ActiveMQServerControl`](https://activemq.apache.org/components/artemis/documentation/javadocs/javadoc-latest/org/apache/activemq/artemis/api/core/management/ActiveMQServerControl.html#listUser(java.lang.String)), e.g. this command: ``` curl -s -H "Origin: http://localhost" -u myUser:myPass --header "Content-type: application/json" --request POST --data '{"operation": "listUser", "mbean": "org.apache.activemq.artemis:broker=\"0.0.0.0\"", "type": "exec", "arguments": [""] }' http://localhost:8161/console/jolokia | jq '.value | fromjson' ``` Might provide output like this: ```json [ { "username": "myUser1", "roles": [ "myRole1" ] }, { "username": "myUser2", "roles": [ "myRole2", "myRole3" ] } ] ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For additional commands, e-mail: gitbox-h...@activemq.apache.org For further information, visit: https://activemq.apache.org/contact