Handling Queue Security - Intergraph Batch Services - Help

Intergraph Batch Services Help

Language
English
Product
Intergraph Batch Services
Search by Category
Help

Queue security is managed through the restricting and granting of access to the queue. To have access to a queue means that the user is able to submit jobs to it. By default, access to a queue is unrestricted when it is created; both local and remote users are able to submit jobs to it. You cannot create restricted queues from the command line.

However, you can create queues with access restrictions using Batch Manager. You can modify access restrictions using both the command line and Batch Manager.

Manager privileges are required on the server where the queue is located to modify the access restrictions.

If you are creating a queue using Batch Manager:

  1. Select Queue > Create, or click Create Queue Create Queue on the toolbar.

  2. Select the Security tab on the Create Queue dialog box.

  3. Select Restricted Access to restrict the queue to specified users and groups.

  4. Add users and groups to the Authorized Users and Groups box.

  5. Click OK when the Create Queue dialog is complete.

If you are modifying an existing queue using Batch Manager:

  1. Select the queue you want to modify.

  2. Select Queue > Properties.

    Batch Manager displays the Queue Properties Dialog Box.

  3. Select the Security tab.

  4. Change the access on this dialog as appropriate.

  5. Click OK when the Queue Properties dialog is complete.

If you want to restrict access to a queue using the Command Line:

  1. Start qmgr.

  2. Use the set no access command to completely restrict the queue. Requests already in the queue will be allowed to remain there.

  3. Use the add users command to add users to the access list. Use the add groups command to add groups to the access list.

    If you want to remove specific users and groups from the access list, use the delete users and delete groups commands.

If you want to un-restrict access to a queue using the Command Line:

  1. Start qmgr.

  2. Use the set unrestricted access command to allow all users access to the queue.

Using the Batch API:

  1. Use the BatchGetQueueInfo function to obtain the current BATCH_QUEUE_INFO_2 structure.

  2. Modify the pSD field.

  3. Use the BatchSetQueueInfo function to set the new BATCH_QUEUE_INFO_2 structure.