<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi Simon ,<br></div>Thanks for your reply..<br><br></div>I am using three users <br></div>//for monitoring purpose <br></div>permission "alivenss-test.*" "" ".*"<br>
<br></div>//for read write <br></div>permission "" ".*" ".*" (instead of making "amq\.default" , i am keeping configure as " " and it is working)<br><br></div><div>do "" means "^$" or "amq\.default" ?<br>
</div><div><br></div>//for all three<br></div>permission ".*" ".*" ".*"<br><br><br><br></div>Thanks <br>Saurabh<br><div><div><div><div><div><div><br><div><br><br></div></div></div></div></div>
</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 20, 2013 at 6:03 PM, Simon MacMullen <span dir="ltr"><<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 20/12/13 06:43, Saurabh Sharma wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
1) i want to create a user who can make call to api for aliveness test<br>
and querying queues.<br>
i am setting permission like<br>
<br>
rabbitmqctl set_permissions -p / monitor "^(.\.aliveness-test.*)$"<br>
"^(.\.aliveness-test.*)$" ".*"<br>
<br>
but still getting the error that<br>
"error":"not_authorised","<u></u>reason":"ACCESS_REFUSED - access to queue<br>
'aliveness-test' in vhost '/' refused for user 'monitor'"<br>
</blockquote>
<br></div>
Those brackets and dots are not needed. Also the aliveness-test publishes to the queue via the default exchange, so you need to define permissions for that. So:<br>
<br>
$ rabbitmqctl set_permissions -p / monitor "^aliveness-test$" "^amq.default$" ".*"<br>
<br>
should work.<br>
<br>
Cheers, Simon<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
Simon MacMullen<br>
RabbitMQ, Pivotal<br>
</div></div></blockquote></div><br></div>