Granting authority to inquire on a queue manager

Grant the authority to inquire on a queue manager, to each group of users with a business need for it.

About this task

To grant the authority to inquire on a queue manager, use the appropriate commands for your operating system.
On the following platforms, you can also use the SET AUTHREC command:
  • [IBM i]IBM® i
  • [Linux]Linux®
  • [UNIX]UNIX
  • [IBM i]Windows
[MQ Appliance]Note: On IBM MQ Appliance you can use only the SET AUTHREC command.

Procedure

  • For UNIX, Linux, and Windows systems, issue the following command:
    
    setmqaut -m QMgrName -n ObjectProfile -t qmgr -g GroupName +inq
    
  • For IBM i, issue the following command:
    
    GRTMQMAUT OBJ(' ObjectProfile ') OBJTYPE(*MQM) USER(GroupName) AUT(*INQ) MQMNAME(' QMgrName ')
    
  • For z/OS®, issue the following commands:
    
    RDEFINE MQCMDS QMgrName.ObjectProfile UACC(NONE)
    PERMIT QMgrName.ObjectProfile CLASS(MQCMDS) ID(GroupName) ACCESS(READ)
    
    These commands grant access to the specified queue manager. To permit the user to use the MQINQ command, issue the following commands:
    
    RDEFINE MQCMDS QMgrName.MQINQ.QMGR UACC(NONE)
    PERMIT QMgrName.MQINQ.QMGR CLASS(MQCMDS) ID(GroupName) ACCESS(READ)
    
    The variable names have the following meanings:
    QMgrName
    The name of the queue manager. On z/OS, this value can also be the name of a queue sharing group.
    ObjectProfile
    The name of the object or generic profile for which to change authorizations.
    GroupName
    The name of the group to be granted access.