Exporting authorities to a file

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

About this task

The authorities are formatted in the text file so that you can use lines from the file on the command line or in scripts to set authorities on other computers in your 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 

You can export different subsets of object authorities. Complete any of the following tasks:

  1. Export all object authorities for a queue manager and its objects
  2. Export all Create authorities for a queue manager
  3. Export authorities by object type

Procedure

  • [OPTION 1] Export all object authorities for a queue manager and its objects
    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.

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

  • [OPTION 2] Export all Create authorities for a queue manager
    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.

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

  • [OPTION 3] Export authorities by object type
    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.

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