Sharing Cloud and Desktop Flows
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② 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
- Navigate to your cloud flow dashboard.
- Locate the flow you wish to share and select the "Share" or "Manage Access" option.
- Enter the email address or the security group name of the users or teams you want to grant access to.
- Select the appropriate role (e.g., Co-owner or Run-only).
- 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.
- 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
- Grant Access to the Flow: Navigate to your desktop flow repository. Select the flow and grant the necessary permissions (Co-owner or User).
- Assign to a Machine Group: Ensure the flow is associated with a machine group that the target users have permission to use.
- 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.
- 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
- Development: Developer creates the flow in a "Development" environment.
- Testing: The flow is promoted to a "Test" environment where testers are given access to verify functionality.
- 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.
- 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
- 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.
- Desktop Flow: Grant "User" access to the service account that runs on the machine group.
- Machine Group: Ensure the service account has the necessary Windows credentials to log into the machines in the group.
Step 3: Deployment
- Package the flows into a "Solution." In platforms like Power Automate, solutions are the primary way to package and transport flows.
- Deploy the solution to the Production environment.
- Verify that the connections are using the service account credentials.
Step 4: Maintenance
- Monitor the "Run History" in the cloud portal.
- 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
- 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. - 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.
- 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.
- Regular Audits: Schedule a monthly or quarterly review of your shared flows. Remove access for users who have changed roles or left the department.
- 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.
- Leveraging the Power Automate Ecosystem
- Leveraging the Power Automate Ecosystem Quiz5q
- Cloud Flows vs Desktop Flows
- Cloud Flows vs Desktop Flows Quiz5q
- Designing Desktop and Cloud Flow Automations
- Designing Desktop and Cloud Flow Automations Quiz5q
- Trigger Types for Cloud Flows
- Trigger Types for Cloud Flows Quiz5q
- Target Application and Browser Interactions
- Target Application and Browser Interactions Quiz5q
- Methods for Running Desktop Flows
- Methods for Running Desktop Flows Quiz5q
- Concurrent Flow Execution
- Concurrent Flow Execution Quiz5q
- Attended vs Unattended Desktop Flows
- Attended vs Unattended Desktop Flows Quiz5q
- HTTP Actions in Cloud and Desktop Flows
- HTTP Actions in Cloud and Desktop Flows Quiz5q
- Work Queues for Automation
- Work Queues for Automation Quiz5q
- Designing Custom Actions
- Designing Custom Actions Quiz5q
- Cloud Flow Calling Desktop Flow
- Cloud Flow Calling Desktop Flow Quiz5q
- Child Cloud Flows and Data Passing
- Child Cloud Flows and Data Passing Quiz5q
- External API Calls in Cloud Flows
- External API Calls in Cloud Flows Quiz5q
- Trigger Conditions and Concurrency
- Trigger Conditions and Concurrency Quiz5q
- Timeout and Retry Policies
- Timeout and Retry Policies Quiz5q
- Data Objects and Operations in Cloud Flows
- Data Objects and Operations in Cloud Flows Quiz5q
- Text Parsing JSON XML CSV
- Text Parsing JSON XML CSV Quiz5q
- UI Options in Desktop Flows
- UI Options in Desktop Flows Quiz5q
- Datatables Lists and Custom Objects
- Datatables Lists and Custom Objects Quiz5q
- Subflows in Desktop Flows
- Subflows in Desktop Flows Quiz5q
- External APIs in Desktop Flows
- External APIs in Desktop Flows Quiz5q
- Timeout and Retry in Desktop Flows
- Timeout and Retry in Desktop Flows Quiz5q
- Custom Actions in Desktop Flows
- Custom Actions in Desktop Flows Quiz5q
- Flow Control and Loops
- Flow Control and Loops Quiz5q
- Expressions in Cloud Flows
- Expressions in Cloud Flows Quiz5q
- Variable Actions for Flows
- Variable Actions for Flows Quiz5q
- Secure Input and Output Data
- Secure Input and Output Data Quiz5q
- Desktop Flow Priority and Queues
- Desktop Flow Priority and Queues Quiz5q
- Exception Handling Blocks
- Exception Handling Blocks Quiz5q
- Business Exception Error Handling
- Business Exception Error Handling Quiz5q
- Work Queues in Flows
- Work Queues in Flows Quiz5q
- Building a Custom Connector
- Building a Custom Connector Quiz5q
- Custom Connector Authentication
- Custom Connector Authentication Quiz5q
- Custom Connector Policy Templates
- Custom Connector Policy Templates Quiz5q
- Code in Custom Connectors
- Code in Custom Connectors Quiz5q
- Credential Management Practices
- Credential Management Practices Quiz5q
- On-Premises Data Gateway
- On-Premises Data Gateway Quiz5q
- Dataverse Solutions Components
- Dataverse Solutions Components Quiz5q
- Machine and Machine Group Requirements
- Machine and Machine Group Requirements Quiz5q
- Machine Registration Management
- Machine Registration Management Quiz5q
- Machine Group Management
- Machine Group Management Quiz5q
- Load Balancing Desktop Flows
- Load Balancing Desktop Flows Quiz5q
- Run Queue Operations
- Run Queue Operations Quiz5q
- Analyzing Flow Run History
- Analyzing Flow Run History Quiz5q
- Power Automate Analytics Dashboard
- Power Automate Analytics Dashboard Quiz5q
- Desktop Flow Monitoring
- Desktop Flow Monitoring Quiz5q
- Automation Performance Optimization
- Automation Performance Optimization Quiz5q
- Troubleshooting Flow Failures
- Troubleshooting Flow Failures Quiz5q
- Center of Excellence RPA Analytics
- Center of Excellence RPA Analytics Quiz5q
No PL-500 practice exam yet
Your points already work on 76 Amazon, CompTIA and Microsoft exams.
See the exams