If the point in the topic tree where the application makes the subscription is not represented by an administrative topic object, move up the tree until the closest parent administrative topic object is located. The security profile is checked, based on the name of that topic object.
Figure 1. Example of granting access to a topic within a topic tree
Topic
Subscribe access required
Topic object
Price
No user
None
Price/Fruit
USER1
FRUIT
Price/Fruit/Apples
USER1
Price/Fruit/Oranges
USER1
In the previous task USER1 was granted access to subscribe to topic Price/Fruit by granting it access to the hlq.SUBSCRIBE.FRUIT profile on z/OS and subscribe access to the FRUIT profile on other platforms. This single profile also grants USER1 access to subscribe to Price/Fruit/Apples, Price/Fruit/Oranges and Price/Fruit/#.
When USER1 attempts to subscribe to topic Price/Fruit/Apples the result is success.
When USER2 attempts to subscribe to topic Price/Fruit/Apples the result is failure with an MQRC_NOT_AUTHORIZED message, together with:
On z/OS, the following messages seen on the console that show the full security path through the topic tree that has been attempted:
The messages you receive on z/OS are identical to those received in the previous task as the same topic objects and profiles are controlling the access.
The event message you receive on other platforms is similar to the one received in the previous task, but the actual topic string is different.