Sharing Machines and Machine Groups

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② When every section has a ✓, tap Complete lesson.

0 of 11 read · keep scrolling

✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro

Access to RPA Components: Sharing Machines and Machine Groups

Introduction: The Foundation of Scalable Automation

In the world of Robotic Process Automation (RPA), the ability to execute tasks reliably depends entirely on the underlying infrastructure. When an organization moves beyond a single developer's workstation to a production-grade environment, the concept of "Machines" and "Machine Groups" becomes the central nervous system of the operation. Sharing these resources is not merely a technical configuration task; it is a fundamental governance requirement that dictates how your digital workforce is managed, secured, and scaled.

Without proper sharing mechanisms, an automation project remains siloed. If a developer creates a high-performing bot but cannot grant the necessary access to the production orchestrator or the specific machine cluster required for execution, the automation effectively dies on the developer’s local machine. Understanding how to manage, share, and restrict access to these components ensures that your automation architecture is both secure and highly available. This lesson explores the mechanics of machine management, the logic behind grouping, and the best practices for ensuring that your automated processes have the right environment to run whenever they are needed.

Not read yet

Understanding RPA Machines and Machine Groups

Before diving into the sharing process, we must define what these components actually represent in an automation ecosystem. In most modern RPA platforms, a "Machine" is a logical representation of a physical or virtual computer (VM) that hosts the automation runtime. This runtime is the software agent that listens for commands from an orchestrator and executes the associated workflows.

A "Machine Group" (often called a Machine Pool or Cluster) is a collection of these individual machines that are treated as a single unit of capacity. By grouping machines, you create a load-balancing effect. When a process is triggered, the orchestrator does not need to know which specific computer is free; it simply targets the group, and the group automatically assigns the job to the next available worker. This abstraction is critical for high-volume processes where a single machine might become a bottleneck.

The Logic of Resource Sharing

Sharing machines and machine groups is the process of granting permissions to specific users, groups, or folders within your automation platform. This is a multi-layered security model. By sharing a machine, you are essentially telling the system: "I trust the users or processes in this folder to utilize the computing power of this specific hardware."

If you fail to share these resources correctly, you will encounter "Resource Unavailable" errors, even if the machines are powered on and connected. Sharing is the bridge between the infrastructure team (who manages the servers) and the automation team (who manages the bots).

Callout: Machines vs. Machine Groups While individual machines allow for precise control—such as dedicating a specific high-performance server to a complex database-heavy task—machine groups offer elasticity. Use individual machines for specialized tasks where specific software configurations exist, but always prefer machine groups for standard, repeatable tasks to maximize uptime and prevent single-point-of-failure scenarios.

Not read yet

Configuring Access: A Step-by-Step Guide

The process of sharing these components varies slightly depending on the specific vendor software, but the underlying logic remains consistent across the industry. Below is a generalized workflow that applies to most enterprise-grade RPA orchestrators.

Step 1: Defining the Machine Identity

Before you can share a machine, it must be registered with the orchestrator. This usually involves installing a runtime agent on the target machine and providing it with a unique machine key or certificate.

  1. Navigate to the "Machines" or "Infrastructure" section of your orchestrator dashboard.
  2. Click "Add New Machine" and assign a descriptive name.
  3. Generate a machine key—this is the secret token that allows the local agent to talk to the central server.
  4. On the target machine, open the Robot/Agent configuration utility, input the orchestrator URL, and paste the machine key.

Step 2: Creating and Managing Machine Groups

Once you have several individual machines registered, you should organize them into groups to simplify management.

  1. Navigate to the "Machine Groups" tab.
  2. Create a new group and assign a name that reflects its purpose (e.g., "Finance_Production_Bots" or "HR_Low_Priority_Queue").
  3. Select the individual machines you want to add to this group.
  4. Verify the status of each machine in the group. If a machine shows as "Disconnected," it cannot be part of the group's capacity.

Step 3: Sharing with Folders or Users

Sharing is essentially an access control list (ACL) operation. You are granting an entity (a folder or a specific team) the right to request work from these machines.

  1. Select the Machine or Machine Group you wish to share.
  2. Click the "Share" or "Manage Access" button.
  3. Search for the target "Folder" (in environments that use folder-based isolation) or "User Group."
  4. Assign the appropriate permissions:
    • Viewer: Can see the machine status but cannot run jobs.
    • Editor: Can modify machine settings or group configurations.
    • Executor: (The most common) Allows processes in that folder to use this machine for running jobs.

Note: Always follow the principle of least privilege. If a project only needs access to a specific machine group for testing, do not share the production machine group with the development folder.

Not read yet

Practical Examples of Resource Allocation

To understand why this matters, consider a real-world scenario involving two departments: Finance and Marketing.

Scenario A: The Finance Department

The Finance team runs a complex, high-priority reconciliation bot every night at 2:00 AM. They require a machine with a high amount of RAM and specific, secure browser configurations.

  • Strategy: You create a dedicated "Finance_High_Perf" machine group. You share this group only with the Finance production folder. Even if the Marketing team has full access to the orchestrator, they cannot trigger jobs on these machines because the resource has not been shared with their folder.

Scenario B: The Marketing Department

The Marketing team runs a high-volume social media scraping bot that requires very little processing power but needs to be scaled horizontally across 10 machines to finish quickly.

  • Strategy: You create a "Marketing_Scaling" machine group. You add 10 lightweight virtual machines to this pool. Because this is a lower-risk operation, you can share this group with the Marketing development folder, allowing developers to test their code on the actual production-ready infrastructure before the final deployment.

Not read yet

Code-Based Management: Using APIs for Automation

In large enterprises, manually clicking through a web interface to share machines is prone to error and difficult to audit. Most mature RPA platforms provide REST APIs that allow you to manage these resources programmatically. This is the "Infrastructure as Code" approach to RPA.

Below is an example of how you might use a Python script to verify access to a machine group. This script assumes you have an API token and the appropriate permissions to query the orchestrator.

import requests

# Define the orchestrator connection details
orchestrator_url = "https://rpa.yourcompany.com"
api_token = "your_secret_api_token"
headers = {"Authorization": f"Bearer {api_token}", "Content-Type": "application/json"}

def check_machine_group_access(group_id):
    """
    Checks the access list for a specific machine group.
    """
    endpoint = f"{orchestrator_url}/odata/MachineGroups({group_id})/AccessRights"
    response = requests.get(endpoint, headers=headers)
    
    if response.status_code == 200:
        access_list = response.json()
        print(f"Current access list for group {group_id}:")
        for entry in access_list['value']:
            print(f"- Entity: {entry['EntityName']}, Permission: {entry['PermissionLevel']}")
    else:
        print(f"Failed to retrieve access data: {response.status_code}")

# Usage
check_machine_group_access(12345)

Explanation of the Code

  1. Headers: We include the Authorization header to prove our identity. Without this, the server will reject the request as unauthorized.
  2. Endpoint: We use an OData-compliant URL structure, which is standard for most enterprise orchestrators. The MachineGroups({group_id}) syntax allows us to target a specific resource.
  3. Response Handling: The script parses the JSON response to display who currently has access. This is a powerful way to perform automated audits of your infrastructure.

Not read yet

Best Practices for Managing Machine Access

Scaling your RPA program requires a disciplined approach to infrastructure. If you treat your machine sharing as an afterthought, you will eventually face security vulnerabilities or resource contention issues.

1. Centralize Governance

Do not allow individual developers to create their own machine pools. Instead, establish a "Platform Engineering" or "RPA Center of Excellence" (CoE) team responsible for provisioning and sharing these resources. This ensures that naming conventions are followed and that security policies are applied consistently.

2. Implement Automated Tagging

Tagging your machines based on their capabilities (e.g., OS:Windows10, Browser:Chrome, RAM:16GB) is an industry standard. When sharing a machine group, ensure that the description or the metadata explicitly states what the machines are capable of. This prevents users from trying to run a memory-intensive process on a machine designed for lightweight tasks.

3. Regularly Audit Access Lists

Quarterly audits are essential. Use the API method described in the previous section to generate a report of all machine groups and their associated folders. If you find folders that are no longer active, revoke their access immediately.

Warning: The "Everyone" Trap Never grant access to machine groups using generic groups like "Everyone" or "All Users." This is a security nightmare that allows any user with a developer login to potentially run code on production infrastructure, which could lead to data leakage or accidental system disruptions.

4. Use Load Balancing Settings Wisely

When configuring a machine group, you have options for how jobs are distributed.

  • Round Robin: The orchestrator sends the next job to the next available machine in the list. This is great for keeping all machines equally busy.
  • First Available: The orchestrator keeps filling the first machine until it hits a threshold, then moves to the next. This is useful if you want to keep some machines idle to save on energy or cloud compute costs.

Not read yet

Troubleshooting Common Pitfalls

Even with the best planning, issues will arise. Here is how to handle the most frequent problems.

Issue Likely Cause Solution
"Robot not found" The machine is disconnected from the orchestrator. Check the local agent service status on the machine.
"Access Denied" The folder containing the process doesn't have permissions for the machine group. Update the sharing settings in the Orchestrator.
Jobs stuck in "Pending" All machines in the group are busy or offline. Check the concurrency settings of the machine group.
High latency in execution The orchestrator and the machine are in different data centers. Ensure machines are physically located near the infrastructure they interact with.

The "Pending" State Mystery

When jobs stay in a "Pending" state, it is almost always an issue with the machine group configuration. First, check if the machines are actually "Available." If they are, check the "Concurrency" setting. If you have a group of 5 machines but you have set the concurrency limit to 1, the orchestrator will only ever run one job at a time, leaving 4 machines idle while the queue grows.

Not read yet

Industry Standards and Compliance

In highly regulated industries like healthcare or finance, sharing machines is not just about functionality; it is about compliance. You must be able to prove that only authorized personnel can trigger automation on specific machines.

  • Audit Trails: Ensure that every time a machine is shared or access is modified, the orchestrator logs the event. This is crucial for SOC2 or ISO compliance.
  • Network Segmentation: Even if you share a machine group at the orchestrator level, ensure that the machines are on a secure, segmented network. The orchestrator should be the only entity allowed to communicate with these machines via the required ports.
  • Credential Management: Machines should never have hardcoded credentials. Use a secure credential vault (like CyberArk or HashiCorp Vault) that the machine accesses at runtime. When you share a machine, you are sharing the access to the resource, not the credentials themselves.

Not read yet

Advanced Concepts: Dynamic Resource Allocation

In a mature RPA environment, you may eventually move toward "Dynamic Resource Allocation." Instead of static machine groups, the orchestrator interacts with a cloud provider (such as Azure or AWS) to spin up a virtual machine only when a job is triggered.

When the job finishes, the machine is terminated. While this is highly cost-effective, it requires a sophisticated setup. You must configure the "Machine Template" in your orchestrator, which includes the image and the script to join the domain. Sharing these templates is just as important as sharing the machines themselves, as it dictates who has the authority to request new infrastructure.

Callout: The Future of Automation Infrastructure We are moving away from the era of "pet" machines (where each machine is unique and carefully maintained) toward "cattle" machines (where machines are identical, ephemeral, and easily replaced). If you are building a new infrastructure, design your machine groups to be interchangeable. If a machine fails, the orchestrator should simply spin up a new one from a template, and the group should continue functioning without manual intervention.

Not read yet

Summary: Key Takeaways for Success

Managing access to RPA components is a cornerstone of a successful automation program. By mastering the concepts of machine management and sharing, you ensure that your digital workforce is secure, efficient, and reliable. Keep these core principles in mind as you architect your environment:

  1. Abstraction is Key: Always use Machine Groups instead of individual machines for production workloads. This provides the redundancy required for enterprise-level stability.
  2. Least Privilege Governance: Strictly control which folders have access to which machine groups. Use the "Folder-to-Machine" relationship to enforce organizational boundaries.
  3. Automate the Audits: Use APIs to periodically verify that your access lists are clean and accurate. Do not rely on manual checks, as they will inevitably fall behind.
  4. Monitor Concurrency: Regularly review your machine group concurrency settings. If your queue is growing while machines are idle, your concurrency settings are likely the culprit.
  5. Infrastructure as Code: Treat your RPA infrastructure with the same rigor as your software code. Use standard images, automated provisioning, and version control for your machine configurations.
  6. Prioritize Security: Never grant global access to your machine infrastructure. Always ensure that the principle of least privilege is applied to both human users and the automated processes themselves.
  7. Proactive Maintenance: A machine that is "shared" but disconnected is useless. Implement proactive monitoring to alert your team the moment a machine heartbeat is lost, rather than waiting for a user to report a failed job.

By following these guidelines, you will move from a reactive state of "fixing broken bots" to a proactive state of "managing a scalable digital workforce." The infrastructure is the silent partner in every automation—treat it with the care and structure it deserves, and your automation program will thrive.

Not read yet

Common Questions (FAQ)

Q: Can I add the same machine to multiple machine groups? A: Yes, most platforms allow this. However, use caution. If a machine belongs to two groups and both groups are under heavy load, the machine might receive more jobs than it can handle, leading to performance degradation.

Q: What happens if I revoke access to a machine group while a job is running? A: Usually, the active job will finish, but the machine will stop accepting new jobs from that folder. It is good practice to drain the queue before changing access permissions.

Q: Why does my machine show as "Available" but jobs still fail to start? A: Check the "Runtime" settings. The machine might be available, but the specific "Robot" or "User" assigned to that machine might not have the correct permissions to access the orchestrator's queue or the target application.

Q: Is it better to have many small machine groups or a few large ones? A: A few large groups are generally easier to manage and provide better load balancing. However, small, dedicated groups are better for isolation if you have processes with vastly different security or performance requirements.

Q: How often should I rotate the machine keys? A: Industry standards suggest rotating keys every 90 days, or immediately if you suspect a machine has been compromised. Automate this process using your orchestration API to avoid downtime.

This concludes our deep dive into sharing machines and machine groups. By applying these concepts, you are ensuring that your RPA infrastructure is built on a solid, scalable, and secure foundation.

Not read yet

Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.