Sharing Cloud and Desktop Flows

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 12 read · keep scrolling

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

Module: Deploy and Manage Automations

Section: Access to RPA Components

Lesson Title: Sharing Cloud and Desktop Flows


Introduction: The Importance of Collaborative Automation

In the modern enterprise, Robotic Process Automation (RPA) is rarely a solo endeavor. While a developer might initially build a flow to solve a specific, localized problem, the true value of automation emerges when those tools are shared across teams, departments, or entire organizations. Sharing cloud and desktop flows is the fundamental mechanism that transforms isolated scripts into scalable, enterprise-grade business assets. Without a clear strategy for sharing, organizations often fall into the trap of "siloed automation," where redundant work is performed, security risks are introduced through shadow IT, and maintenance becomes a nightmare because no one knows who owns or manages a specific process.

Understanding how to share flows effectively involves more than just clicking a "Share" button. It requires a deep understanding of permissions, environment isolation, connection management, and governance. When you share a flow, you are effectively granting another user or service account the ability to execute, modify, or manage a digital worker. If done correctly, this democratizes the power of automation, allowing subject matter experts to contribute to flows without needing to be professional developers. If done poorly, it exposes the organization to data leaks, unauthorized process changes, and operational instability.

This lesson explores the technical mechanics of sharing flows within modern automation platforms, the governance models required to maintain security, and the best practices for ensuring that shared automations remain reliable and maintainable over the long term. Whether you are working with cloud-based orchestrators or desktop-bound automation tools, the principles remain the same: grant the minimum required access, document the dependencies, and establish a clear ownership structure.


Not read yet

Understanding Cloud vs. Desktop Flow Architecture

Before diving into the sharing process, it is essential to distinguish between cloud flows and desktop flows. While they often work in tandem, their sharing mechanisms and security footprints are distinct.

Cloud flows are typically managed through a centralized web portal. They act as the "brain" of your automation ecosystem, handling triggers, data orchestration, and API calls. Because they live entirely in the cloud, sharing them is a matter of updating user permissions within the platform's identity management system. You are essentially granting access to a web-based resource.

Desktop flows, by contrast, execute on local machines or virtual desktop infrastructure (VDI). They interact with the user interface of legacy applications, desktop software, and local file systems. Sharing a desktop flow is more complex because it involves not just the flow script itself, but also the machine connectivity, the authentication credentials required to log into the target application, and the environment in which the flow runs.

The Relationship Between Cloud and Desktop Flows

In most enterprise scenarios, you will find a "hybrid" model. A cloud flow acts as the orchestrator—perhaps triggered by an email or a database update—and then calls a desktop flow to perform the actual UI-based data entry. When you share this hybrid setup, you must share both components. If a colleague has access to the cloud flow but not the desktop flow, the automation will fail at the handoff point.

Callout: The "Orchestrator-Worker" Analogy Think of a cloud flow as a project manager and a desktop flow as a specialized worker. The project manager (cloud flow) can be shared with many people, but if those people don't have the authority to talk to the specialized worker (desktop flow), the project stalls. Sharing access requires ensuring that the "chain of command" is fully accessible to the intended users.


Not read yet

Sharing Cloud Flows: Permissions and Governance

Cloud flows are usually tied to specific environments within your automation platform. An environment acts as a boundary; everything inside an environment is isolated from other environments. When you share a cloud flow, you are managing permissions at the resource level.

Levels of Access

Most enterprise platforms utilize a role-based access control (RBAC) model. The common access levels include:

  • Owner: This user has full control. They can edit the flow, view run history, share the flow with others, and delete the flow. You should limit the number of owners to ensure accountability.
  • Co-owner: Similar to the owner, but sometimes restricted from deleting the flow depending on the platform configuration. This is ideal for team-based development where multiple people contribute to the logic.
  • User/Viewer: These users can trigger the flow (if it is a manual trigger) or view the execution logs. They cannot change the logic or the credentials used by the flow.
  • Run-only User: This is the most restrictive level. The user can execute the flow, but they cannot see the underlying logic, the connections, or the sensitive data being processed. This is perfect for business users who just need to click a button to run a report.

Step-by-Step: Sharing a Cloud Flow

  1. Navigate to your cloud flow dashboard.
  2. Locate the flow you wish to share and select the "Share" or "Manage Access" option.
  3. Enter the email address or the security group name of the users or teams you want to grant access to.
  4. Select the appropriate role (e.g., Co-owner or Run-only).
  5. Review the connections. If the flow uses your personal credentials, you must decide whether to share those connections (not recommended) or require the user to provide their own credentials.
  6. Save the changes.

Warning: The Connection Trap A common mistake is sharing a flow that uses a connection (like a SQL database or email account) authenticated with your personal credentials. When you share the flow, the recipient might inadvertently use your credentials to perform actions. Always use service accounts or shared credentials for production-level flows to ensure the automation is not tied to a single individual's identity.


Not read yet

Sharing Desktop Flows: The Machine Connection

Sharing desktop flows is fundamentally different because the "component" is tied to a machine or a machine group. You cannot simply share a file; you must share access to the infrastructure that hosts the flow.

The Role of Machine Groups

In a professional setting, you rarely deploy desktop flows to a single computer. Instead, you create "Machine Groups." A machine group is a collection of computers that can share the workload. When you share a desktop flow, you typically grant a user or a flow access to a machine group.

Steps to Share Desktop Flows

  1. Grant Access to the Flow: Navigate to your desktop flow repository. Select the flow and grant the necessary permissions (Co-owner or User).
  2. Assign to a Machine Group: Ensure the flow is associated with a machine group that the target users have permission to use.
  3. Handle Credentials: This is the critical step. You must ensure the user has the necessary local or domain credentials to log into the target machine and the target application.
  4. Verify Environment Connectivity: Ensure that the user's account has permission to interact with the environment where the desktop flow resides.

Best Practices for Desktop Flow Sharing

  • Use Service Accounts: As with cloud flows, never use your personal credentials for desktop flows. Create a dedicated service account with the minimum permissions required to run the application.
  • Document Dependencies: If your desktop flow requires specific software versions, browser extensions, or local files, include this in a README file within the flow's documentation.
  • Version Control: Always use the built-in versioning system. When sharing, clarify which version is the "Production" version and which is for testing.

Not read yet

Managing Connections and Credentials

The most significant security risk in sharing automations is the mishandling of connections. A connection is the "bridge" between the automation platform and the external service (e.g., SAP, Salesforce, SQL Server, or Outlook).

Connection Types

  • Personal Connections: These are tied to your specific user profile. They are easy to set up but dangerous to share. If you leave the company, all flows using your personal connection will break.
  • Shared/Service Connections: These are connections created using a service account. They are designed to be shared. When you share a flow, you can map it to a shared connection, ensuring that the automation remains independent of any individual's account.

How to Implement Shared Connections

When you configure an automation, look for the option to use a "Service Principal" or "Shared Account" for authentication. In platforms like Power Automate, this is often handled through "Connections" management in the admin center. You can create a connection, share it with a specific group of developers, and then update your flows to point to this shared resource.

Note: Periodically audit your connections. If you find flows that are still using personal connections, prioritize migrating them to service accounts. This is a common finding in security audits and is a quick win for stabilizing your automation environment.


Not read yet

Governance and Access Control Policies

Governance is the set of rules you apply to ensure your automation platform remains secure and performant. Without governance, sharing flows becomes a chaotic process that leads to "sprawl," where hundreds of duplicate or broken flows exist without an owner.

Establishing an Automation Center of Excellence (CoE)

A CoE is a team or a set of guidelines that governs how automations are built, deployed, and shared. A key part of the CoE's role is to define the "Access Matrix."

Example Access Matrix

Role Can Edit Logic? Can Run? Can Share? Can Delete?
Developer Yes Yes Yes Yes
Power User No Yes No No
Business User No Yes No No
Auditor No Yes (View Only) No No

The Lifecycle of a Shared Flow

  1. Development: Developer creates the flow in a "Development" environment.
  2. Testing: The flow is promoted to a "Test" environment where testers are given access to verify functionality.
  3. Production: The flow is moved to a "Production" environment. Only authorized service accounts have the ability to run these flows. Humans are typically restricted to "Run-only" or "Viewer" access.
  4. Retirement: When a flow is no longer needed, the CoE team removes all access, archives the flow, and eventually deletes it.

Not read yet

Common Pitfalls and How to Avoid Them

Even with the best intentions, sharing flows can lead to technical debt and security vulnerabilities. Here are the most common mistakes and how to navigate them.

1. The "Orphaned Flow" Problem

When a developer leaves the company, their flows often become "orphaned." If the flow was using their personal credentials, it stops working immediately. If it was using a service account, it might continue to run, but no one knows how to update it.

  • Solution: Always assign at least two owners to every production flow. Use a group or a service account as the owner whenever possible.

2. Excessive Permissions

Granting "Co-owner" access to everyone on a team is a recipe for disaster. One accidental change by an inexperienced user can break a critical business process.

  • Solution: Follow the principle of least privilege. If a user only needs to trigger the flow, give them "Run-only" access. If they need to monitor it, give them "Viewer" access.

3. Hard-coded Values

Developers often hard-code paths, URLs, or email addresses into their flows. When they share these flows, the recipient finds that the flow points to the original developer's local machine or personal folder.

  • Solution: Always use Environment Variables. These allow you to define a variable (like a folder path) that changes depending on the environment. When the flow is shared or moved to production, the variable automatically updates to the correct value for that environment.

4. Ignoring Error Handling

When a flow is shared, it will inevitably fail at some point. If there is no error handling, the user who triggered the flow will be left confused, and the developer will be flooded with support requests.

  • Solution: Implement "Try-Catch" blocks. If an error occurs, the flow should send a clear notification to the user and log the error in a centralized database or monitoring dashboard.

Not read yet

Practical Example: Sharing a Daily Data Extraction Flow

Imagine you have built a flow that extracts data from a legacy desktop application and saves it to a shared SharePoint folder. Here is how you should handle the sharing process for this specific scenario.

Step 1: Prepare the Components

  • Cloud Flow: Handles the schedule (e.g., runs every morning at 8:00 AM).
  • Desktop Flow: Handles the login and data scraping.
  • Connection: Use a dedicated "Automation_Bot" service account for both the desktop app login and the SharePoint access.

Step 2: Configure Permissions

  1. Cloud Flow: Share with the "Data Analysis Team" as "Run-only users." This allows them to see that the flow ran, but prevents them from changing the logic.
  2. Desktop Flow: Grant "User" access to the service account that runs on the machine group.
  3. Machine Group: Ensure the service account has the necessary Windows credentials to log into the machines in the group.

Step 3: Deployment

  1. Package the flows into a "Solution." In platforms like Power Automate, solutions are the primary way to package and transport flows.
  2. Deploy the solution to the Production environment.
  3. Verify that the connections are using the service account credentials.

Step 4: Maintenance

  1. Monitor the "Run History" in the cloud portal.
  2. Set up an alert that notifies the "Automation_Admin" group if the flow fails three times in a row.

Not read yet

Technical Deep-Dive: Using Environment Variables

Environment variables are the most effective way to make your flows portable and easy to share. Instead of hard-coding a value like C:\Users\JohnDoe\Reports, you create an environment variable called ReportPath.

In your flow, you reference the variable: Set variable ReportPath = EnvironmentVariable("ReportPath")

When you share this flow or move it to a different environment, you simply update the value of ReportPath in that environment. The logic of the flow remains untouched. This is a standard industry practice for any developer working with RPA at scale.

Code Snippet: Accessing Configuration Data

While many platforms use low-code interfaces, you might occasionally need to handle configuration data via JSON. Here is a conceptual example of how a flow might retrieve configuration settings:

{
  "ProcessName": "DailySalesExtraction",
  "TargetEnvironment": "Production",
  "Retries": 3,
  "NotificationEmail": "[email protected]"
}

When sharing, you would store this configuration in a central repository (like a Key Vault or a SharePoint list). Your flow reads this JSON, ensuring that all shared users are working with the same configuration parameters.


Not read yet

Quick Reference: Sharing Checklist

Use this table to ensure you have considered all aspects before sharing a flow.

Checkpoint Action
Ownership Are there at least two owners assigned?
Credentials Are personal credentials removed and replaced with service accounts?
Permissions Is the principle of least privilege applied?
Documentation Is there a README or a link to a Wiki explaining the flow?
Error Handling Are there alerts set up for failures?
Variables Are all environment-specific paths/URLs moved to variables?
Access Have you removed access for users who no longer need it?

Common Questions and Answers

Q: Can I share a desktop flow without sharing the cloud flow? A: Yes, you can share them independently. However, if the desktop flow is designed to be triggered by a cloud flow, sharing it alone will likely be useless to the recipient, as they will have no way to trigger it automatically.

Q: What happens if a shared user deletes a connection? A: If the user has "Owner" or "Co-owner" access, they might have the ability to delete connections. This is why you should restrict "Co-owner" access to developers only and use "Run-only" or "Viewer" roles for everyone else.

Q: How do I know who has access to my flow? A: Most platforms have a "Manage Access" panel that lists all users, groups, and their respective permission levels. Review this list quarterly to ensure your access list is up to date.

Q: Is it safe to share flows via email? A: Never export a flow file and email it to a colleague. This bypasses all security and governance protocols. Always use the platform's native "Share" feature to ensure that permissions are tracked and audited.


Not read yet

Best Practices Summary

  1. Standardize Naming Conventions: When sharing flows across a team, use a consistent naming structure (e.g., Dept_ProcessName_Environment). This makes it easier to identify what a flow does and where it belongs.
  2. Centralize Logging: Do not rely on local logs. When sharing flows, ensure that all flows write their logs to a central location (like a SQL database or a cloud log service) so that everyone with access can see the same history.
  3. Version Control: Treat your flows like software. Use a source control system (like GitHub or Azure DevOps) if your platform supports it. This allows you to track changes, roll back to previous versions, and understand who made which change.
  4. Regular Audits: Schedule a monthly or quarterly review of your shared flows. Remove access for users who have changed roles or left the department.
  5. Training: Don't just share the flow; share the knowledge. Provide a brief training session or a document explaining how to troubleshoot common issues for the users you are sharing with.

Not read yet

Key Takeaways

  • Sharing is a Governance Process: Sharing flows is not just a technical task; it is an exercise in governance. Proper management of permissions, credentials, and ownership prevents technical debt and security breaches.
  • Use Service Accounts: Always decouple automations from individual identities. Using service accounts ensures that the automation continues to function regardless of personnel changes.
  • Apply the Principle of Least Privilege: Only provide the level of access necessary for the job. Use "Run-only" access for business users and reserve "Co-owner" status for developers and administrators.
  • Leverage Environment Variables: Avoid hard-coding values. Use environment variables to ensure that flows are portable and can be moved between development, testing, and production environments without manual code changes.
  • Prioritize Error Handling and Monitoring: A shared flow is a shared responsibility. Ensure that when a flow fails, it alerts the right people and provides enough information to resolve the issue quickly.
  • Orchestrate Hybrid Flows: When sharing flows that involve both cloud and desktop components, ensure that users have the correct permissions for the entire "chain of automation," including access to machine groups and target applications.
  • Maintain Ownership: Never allow a flow to become orphaned. Every production-level automation must have a clearly defined owner or team responsible for its maintenance and security.

By following these practices, you move beyond simply "running scripts" and start building a robust, collaborative, and secure automation ecosystem that provides lasting value to your organization. Automation is a team sport; ensure your team is equipped with the right access and the right guidance to succeed.

Not read yet

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