+

Search Tips   |   Advanced Search

User identification

Service integration messages contain two user IDs - a system user ID and an application user ID. IBM MQ can set the user identifier field of the IBM MQ message descriptor (MQMD) from the system user ID used in the service integration message. Additional processing is required to preserve the service integration application user ID when interoperating with IBM MQ using a IBM MQ server.

Service integration messages contain two user IDs:

IBM MQ can be configured to set the user identifier field of the IBM MQ message descriptor (MQMD) from the system user ID used in the service integration message. However, there is only one field for user IDs in the MQMD. If the destination permits the use of MQRFH2 headers, the application user ID present in the message is placed into the <sib> folder of the RFH2 header using a key of jsApiUserId.

When a message is received from queue points or mediations points localized on a IBM MQ server bus member then, depending on whether the associated IBM MQ server definition permits the user IDs to be trusted, the following actions are completed:

Consider an example where the following objects have been configured:

If we configured these objects, when a message is received from Q1, the user ID is always set to QM1 (ignoring the user ID that exists in the message). This happens because the IBM MQ server bus member does not trust the user IDs received in inbound messages, instead it always uses the name of the IBM MQ server that the message is received from.

Regardless of how the system user ID of the service integration message is set, the application user ID is always set from the jsApiUserId RFH2 value. If this is not present, either because the value pair is not present in the <sib> folder of the RFH2 header, or because the message does not have a RFH2 header, then this field will not be set.

As security user IDs are transported in the MQMD message descriptor, they are limited to 12 characters in length. Longer user IDs are truncated.

  • Create an IBM MQ server definition
  • createSIBWMQServer command