title: ActiveMQ: adding users and console access
body: <p>With reference to the ActiveMQ security documentation at <a href="http://activemq.apache.org/security.html" rel="nofollow">http://activemq.apache.org/security.html</a>, I'm trying to add a new user to my ActiveMQ configuration. This user should only be able to see a subset of the available queues.</p>
  
  <p>I have done the following:</p>
  
  <p>1) Added an entry in users.properties:</p>
  
  <pre><code>myuser=mypassword
  </code></pre>
  
  <p>2) Added an entry in groups.properties:</p>
  
  <pre><code>publishers=admin,myuser
  consumers=admin,myuser
  </code></pre>
  
  <p>3) Added an entry to activemq.xml, in the plugins element of the broker element:</p>
  
  <pre><code>&lt;authorizationPlugin&gt;
    &lt;map&gt;
      &lt;authorizationMap&gt;
        &lt;authorizationEntries&gt;
          &lt;authorizationEntry queue="&gt;" read="admins" write="admins" admin="admins" /&gt;
          &lt;authorizationEntry queue="MYQUEUEPREFIX.&gt;" read="consumers" write="publishers" admin="admins" /&gt;
        &lt;/authorizationEntries&gt;
      &lt;/authorizationMap&gt;
    &lt;/map&gt;
  &lt;/authorizationPlugin&gt;
  </code></pre>
  
  <p>When I restart ActiveMQ and access the admin console at myServerURL:8161/admin, I enter the newly created username and password (myuser/mypassword) in the supplied "Authentication required" box but it doesn't give me access to the console. The only way I can get in is by using the already-defined "admin" user.</p>