In this scenario user Frank is granted access to use the IBM® MQ Console to view details about a single queue
manager.
About this task
There are two stages to configuring a user to have access to a single queue manager, and no other
parts of the IBM MQ or appliance configurations.
Firstly you create a user group that gives user access to the IBM MQ Console and add Frank to that group. You use the IBM MQ Appliance web UI to complete this stage.
Then you create a messaging user of the same name (Frank) so that MQ authorities can be granted
to Frank by using the MQ object authority manager (OAM). You use the IBM MQ command line, MQCLI, to complete this stage.
Procedure
-
To create a user group with access to the IBM MQ Console, and add Frank to it, complete the following steps:
-
Start the IBM MQ Appliance web UI, and click the
administration icon
.
-
Select .
-
Click Add.
-
Enter a name for the user group, in this case enter
MQConsoleLimited
.
-
Specify the following access policies in the access profile:
You can also use the policy builder to define the access policies. If you use the builder,
specify the following resources:
- Web-Mgmt (read privilege)
- MQ Web User (execute privilege)
- Change User Password (execute privilege)
-
Create a user account for Frank. Select and specify
Frank
as the user name.
-
Select an Access level of Group defined, and in
User group select the MQConsoleLimited group that you
just created.
-
Click Apply to create the user account.
-
To define a messaging user, complete the following steps:
-
Log into the appliance command line, and enter the MQ CLI:
-
Create the messaging user Frank:
mqa (mqcli)# usercreate -u Frank
You do not need to specify a password
because the appliance user password is used to log in to the
IBM MQ Console. See
Administering messaging users for more information about messaging users.
-
You must now run MQ authority commands to give Frank the required access. You can define the
access by using MQSC, and you can grant access directly to Frank (you could also define a messaging
group, add Frank to it, and grant access to that group). Assuming Frank only wants to display
information about the queue manager QM1 and the queues defined on it, run the following MQSC
commands to grant Frank access to the IBM MQ Console to
display QM1 and associated queues:
mqa (mqcli)# runmqsc QM1
5724-H72 (C) Copyright IBM Corp. 1994, 2025.
Starting MQSC for queue manager QM1.
SET AUTHREC PROFILE(SYSTEM.ADMIN.COMMAND.QUEUE) OBJTYPE(QUEUE) PRINCIPAL('Frank') AUTHADD(PUT)
SET AUTHREC PROFILE(SYSTEM.REST.REPLY.QUEUE) OBJTYPE(QUEUE) PRINCIPAL('Frank') AUTHADD(PUT,GET,INQ,BROWSE)
SET AUTHREC OBJTYPE(QMGR) PRINCIPAL('Frank') AUTHADD(DSP)
SET AUTHREC PROFILE(**) OBJTYPE(QUEUE) PRINCIPAL('Frank') AUTHADD(DSP)
You could use the
IBM MQ Console instead of runmqsc to
define the MQ authorities for Frank, if required.