Exporting authorities to a file

We can export object authorities to a text file from IBM MQ Explorer.


The authorities are formatted in the text file so that we can use lines from the file on the command line or in scripts to set authorities on other computers in the IBM MQ network. For example, a file could contain the following lines:

setmqaut -m QM_A -n Q1 -t queue -p user@domain +browse +chg +clr +dlt +dsp +put +inq +get +passall +passid +set +setall +setid
setmqaut -m QM_A -n Q1 -t queue -g mqm +browse +chg +clr +dlt +dsp +put +inq +get +passall +passid +set +setall +setid 

We can export different subsets of object authorities:

Parent topic: Manage object authorities with an authorization service


Exporting all object authorities for a queue manager and its objects


About this task

To export all of the object authorities for a queue manager and the queue manager's objects:


Procedure

  1. In the Navigator view, right-click the queue manager, then click Object Authorities > Save All. A dialog opens.
  2. Type a name for the text file and save the authorities.


Results

All of the object authorities for the queue manager and its objects are saved in the text file.


Exporting all Create authorities for a queue manager


About this task

To export all of the Create authorities for a queue manager:


Procedure

  1. In the Navigator view, right-click the queue manager, then click Object Authorities > Manage the Create Authorities. The Manage Create Authorities dialog opens. For more information about the managing Create authorities, see Granting the Create authority.
  2. Click Save As. A dialog opens.
  3. Type a name for the text file and save the authorities.


Results

All of the Create authorities for the queue manager are saved in the text file.


Exporting authorities by object type


About this task

To export all of the object authorities by object type:

All of the object authorities from the records that were found are saved in the text file.


Procedure

  1. In the Navigator view, right-click the queue manager, then click Object Authorities > Find Authorities The Find Authorities dialog opens.
  2. Enter the search parameters as required, then click Find; for more information, see Finding the authorities of a user or group.
  3. Click Save As A dialog opens.
  4. Type a name for the text file and save the authorities.


Related tasks