User authorities on WebSphere MQ Managed File Transfer actions

In addition to using groups to manage access to resources, you can enable an additional level of security to restrict the agent actions that a user can take. Grant authorities on an agent authority queue to a user to give the user permission to perform specific agent actions.

Enabling user authority management

To turn on user authority checking on agent actions, complete the following steps:

  1. In the agent.properties file, set the authorityChecking value to true.
  2. Ensure that the user who runs the agent has the IBM® WebSphere® MQ ALT_USER authority to the agent queue manager.
Both agents involved in a transfer must have the same level of security enabled, that is, authorityChecking must be set to the same value in the property files of both agents. Transfers between agents that have different values for the authorityChecking property will fail.

Agent authority queues

The agent has authority queues that are used to manage which users have the authority to perform certain agent actions. The agent does not put or get messages to these queues. The agent authority queues are as follows:
  • SYSTEM.FTE.AUTHADM1.agent_name
  • SYSTEM.FTE.AUTHAGT1.agent_name
  • SYSTEM.FTE.AUTHMON1.agent_name
  • SYSTEM.FTE.AUTHOPS1.agent_name
  • SYSTEM.FTE.AUTHSCH1.agent_name
  • SYSTEM.FTE.AUTHTRN1.agent_name
The authorities that a user has on the agent authority queues specify the actions that the user is authorized to take.
Table 1. The level of IBM WebSphere MQ access authority that a user or group requires on an agent authority queue to perform specific actions.
User action WebSphere MQ Managed File Transfer access authority Authority queues IBM WebSphere MQ access authority

(Distributed platforms)

Shut down the agent, using the -m option on fteStopAgent command. Administration SYSTEM.FTE.AUTHADM1.agent_name BROWSE
Start a transfer of files from this agent Transfer source SYSTEM.FTE.AUTHTRN1.source_agent_name BROWSE
Cancel a transfer of files from this agent started by the same user
Start a transfer of files to this agent Transfer destination SYSTEM.FTE.AUTHTRN1.destination_agent_name PUT
Cancel a transfer of files to this agent started by the same user
Create a resource monitor Monitor SYSTEM.FTE.AUTHMON1.monitor_agent_name BROWSE
Delete a resource monitor created by the same user
Delete a resource monitor created by any user Monitor operations SYSTEM.FTE.AUTHOPS1.agent_name SET
Create a schedule Schedule SYSTEM.FTE.AUTHSCH1.source_agent_name BROWSE
Delete a schedule created by the same user
Delete a schedule created by any user or group Schedule operations SYSTEM.FTE.AUTHOPS1.agent_name PUT
Cancel a transfer created by any user or group Transfer operations SYSTEM.FTE.AUTHOPS1.source_agent_name SYSTEM.FTE.AUTHOPS1.destination_agent_name BROWSE
Note: To give a user or group permission to set up a resource monitor or schedule that starts a transfer the user needs both the Monitor or Schedule authority and Transfer source and Transfer destination authorities.
A user can start one agent and want it to interact with another agent. How the two agents can interact depends on the level of access authority that the user has on the other agent authority queue.
Table 2. The level of IBM WebSphere MQ access authority that the user that starts an agent requires on another agent authority queue so that files can be transferred between the agents.
Agent action WebSphere MQ Managed File Transfer access authority Authority queues IBM WebSphere MQ access authority

(Distributed platforms)

Receive a transfer from

<source_agent>

Agent source SYSTEM.FTE.AUTHAGT1.source_agent_name BROWSE
Send a transfer to

<destination_agent>

Agent destination SYSTEM.FTE.AUTHAGT1.destination_agent_name PUT

Configuring user authority management

To authorize a user to be able to perform an action on an agent, grant the user the appropriate authority on the relevant authority queue. To grant authorities to a user, complete the following steps:

  1. Create a user on the system where the agent queue manager is located that has the same name as the user you want to give authority to perform agent actions. This user does not have to be active.
  2. Grant the user the appropriate authority on the relevant authority queue. If you are using Linux®, UNIX, or Windows, you can use the setmqaut command.
  3. Refresh the security configuration of the queue manager. You can use the REFRESH SECURITY MQSC command.

Example

A user, who is a member of the group requestor_group, wants to set up a resource monitor on AGENT1 that transfers a file from AGENT1, which is running under the user user1, who is a member of the group user1_group, to AGENT2, which is running under the user user2, who is a member of the group user2_group. AGENT1 connects to QM1; AGENT2 connects to QM2. Both agents have authority checking enabled. To make this possible take the following steps:
  1. requestor must have Monitor authority on AGENT1. Set this authority by running the following command on the system where QM1 is running:
    setmqaut -m QM1 -t queue -n SYSTEM.FTE.AUTHMON1.AGENT1 -g requestor_group +browse
  2. requestor must have Transfer source authority on AGENT1. Set this authority by running the following command on the system where QM1 is running:
    setmqaut -m QM1 -t queue -n SYSTEM.FTE.AUTHTRN1.AGENT1 -g requestor_group +browse
  3. requestor must have Transfer destination authority on AGENT2. Set this authority by running the following command On the system where QM2 is running:
    setmqaut -m QM2 -t queue -n SYSTEM.FTE.AUTHTRN1.AGENT2 -g requestor_group +put
  4. user2 must have Agent source authority on AGENT1. Set this authority by running the following command on the system where QM1 is running:
    setmqaut -m QM1 -t queue -n SYSTEM.FTE.AUTHAGT1.AGENT1 -g user2_group +browse
  5. user1 must have Agent destination authority on AGENT2. Set this authority by running the following command on the system where QM2 is running:
    setmqaut -m QM2 -t queue -n SYSTEM.FTE.AUTHAGT1.AGENT2 -g user1_group +put

Logging

If user authority checking is enabled, failed authority checks cause a not authorized log message to be published to the coordination queue manager. See Message formats for security for more information.

Messages about user authority can be written to the agent event log. You can configure the amount of information written to the agent event log by setting the logAuthorityChecks property in the agent property file. By default the level of authority check logging is None. You can also set the value of logAuthorityChecks to Failures, which specifies that only failed authorization checks are reported, or All which specifies that failed and successful authorization checks are reported.

See The agent.properties file for more information.