Not Authorized (type 6)

Event name: Not Authorized (type 6).
Reason code in MQCFH: MQRC_NOT_AUTHORIZED (2035, X'7F3').
Not authorized for access.
Event description: On an MQSUB call, the user is not authorized to use the destination queue with the required level of access. This event is only returned for subscriptions using non-managed destination queues.

When creating, altering, or resuming a subscription, and a handle to the destination queue is supplied on the request, the user does not have PUT authority on the destination queue provided.

When resuming or alerting a subscription and the handle to the destination queue is to be returned on the MQSUB call, and the user does not have PUT, GET and BROWSE authority on the destination queue.

Event type: Authority.
Platforms: All, except IBM MQ for z/OS .
Event queue: SYSTEM.ADMIN.QMGR.EVENT.


Event data

    QMgrName

    Description: Name of the queue manager generating the event.
    Identifier: MQCA_Q_MGR_NAME.
    Data type: MQCFST.
    Maximum length: MQ_Q_MGR_NAME_LENGTH.
    Returned: Always.

    ReasonQualifier

    Description: Identifier for type 6 authority events.
    Identifier: MQIACF_REASON_QUALIFIER.
    Data type: MQCFIN.
    Values:

      MQRQ_SUB_DEST_NOT_AUTHORIZED
      Subscription destination queue usage not authorized.

    Returned: Always.

    Options

    Description: Options specified on the MQSUB call.
    Identifier: MQIACF_SUB_OPTIONS
    Data type: MQCFIN.
    Returned: Always.

    UserIdentifier

    Description: User identifier that caused the authorization check.
    Identifier: MQCACF_USER_IDENTIFIER.
    Data type: MQCFST.
    Maximum length: MQ_USER_ID_LENGTH.
    Returned: Always.

    ApplType

    Description: Type of application that caused the authorization check.
    Identifier: MQIA_APPL_TYPE.
    Data type: MQCFIN.
    Returned: Always.

    ApplName

    Description: Name of the application that caused the authorization check.
    Identifier: MQCACF_APPL_NAME.
    Data type: MQCFST.
    Maximum length: MQ_APPL_NAME_LENGTH.
    Returned: Always.

    TopicString

    Description: Topic string being subscribed to.
    Identifier: MQCA_TOPIC_STRING.
    Data type: MQCFST.
    Maximum length: MQ_TOPIC_STR_LENGTH.
    Returned: Always.

    DestQMgrName

    Description: Hosting queue manager name of the subscription's destination queue.
    Identifier: MQCACF_OBJECT_Q_MGR_NAME
    Data type: MQCFST.
    Maximum length: MQ_Q_MGR_NAME_LENGTH.
    Returned: If the queue manager hosting the destination queue is not the queue manager to which the application is currently connected.

    DestQName

    Description: The name of the destination queue of the subscription..
    Identifier: MQCA_Q_NAME
    Data type: MQCFST.
    Maximum length: MQ_Q_NAME_LENGTH.
    Returned: Always.

    DestOpenOptions

    Description: The open options requested for the destination queue.
    Identifier: MQIACF_OPEN_OPTIONS
    Data type: MQCFIN.
    Returned: Always.

    ConnName

    Description: Connection name for client connection.
    Identifier: MQCACH_CONNECTION_NAME.
    Data type: MQCFST.
    Maximum length: MQ_CONN_NAME_LENGTH.
    Returned: If the application making the MQI call that caused the event is a client attached application.

    ChannelName

    Description: Channel name for client connection.
    Identifier: MQCACH_CHANNEL_NAME.
    Data type: MQCFST.
    Maximum length: MQ_CHANNEL_NAME_LENGTH
    Returned: If the application making the MQI call that caused the event is a client attached application.

Parent topic: Event message descriptions