What it means
The user ID, or the credentials supplied, did not give the authority needed. IBM lists connect (no connect authority, invalid user ID, password or authentication token, or missing credentials), open and MQPUT1 (not enough authority for the requested options), close (deleting a permanent dynamic queue with a handle other than the one that created it), commands, subscribing to a topic, and using a non-managed destination queue.
On z/OS, CICS applications receive MQRC_CONNECTION_NOT_AUTHORIZED instead. The reason can also appear in a report message when a channel agent could not put a message on a remote queue.
Typical causes
- The user lacks connect authority or the required authority on the object.
- A user ID, password or authentication token was invalid or missing.
- On MQCONNX, the user ID or password was too long.
- A model queue needs a dynamic queue the user is not allowed to create (z/OS).
- An Advanced Message Security policy is present.
How to fix it
- Confirm the queue manager and object named are correct and that the needed authority exists.
- If the application supplies a user ID, password or token, check they are valid.
- Ask a system programmer or security administrator to check the queue manager logs for more detail.
Example
Illustrative only; names and values are invented.
MQOPEN failed CompCode=2 Reason=2035 Queue=APP.REQUEST.QUEUE QMgr=QM01