FreeKB - grant permissions using the setmqaut command
IBM MQ - grant permissions using the setmqaut command

These examples are based on a Linux system. Switch to the mqm user.

su - mqm


The setmqaut command is used to add or remove permissions from a users account. In this example, user JohnDoe is given the "connect" and "inq" permissions to queue manager MANAGER01. This assumes that the "mqm" users .bash_profile has been updated to have PATH=$PATH:<root installation directory>/bin.

setmqaut -m MANAGER01 -t qmgr -p JohnDoe +connect
setmqaut -m MANAGER01 -t qmgr -p JohnDoe +inq


The -n option can be used to add or remove permissions from a queue. In this example, JohnDoe is allowed to GET PUT BROWSE and INQUIRE on QUEUE01. Notice this command is issued twice, once against "QUEUE01" and then again aginst "MANAGER01.QUEUE01.QUEUE". The second command ensures that the queue alias is updated as well.

setmqaut -m MANAGER01 -n QUEUE01 -t queue -p JohnDoe -all +put +get +browse +inq
setmqaut -m MANAGER01 -n MANAGER01.QUEUE01.QUEUE -t queue -p JohnDoe -all +put +get +browse +inq


The dspmqaut command can be used to display JohnDoe's permssions to MANAGER01 and QUEUE01.

Start the MQSC utility.

runmqsc MANAGER01


Refresh security.



Exit the MQSC utility.



Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter e03d2 in the box below so that we can be sure you are a human.