While working on a Leave Management application for a client, the client gave a test user account to build the app using Power Apps and Power Automate. After development was complete, the client decided to delete the test account.
However, all the flows were created using that account, and the connections were linked to it. If the account was deleted, the flows would stop triggering or fail due to broken connections.
In Power Automate, flows are strongly dependent on the account and connections used during creation. Simply sharing the flow with another user does not automatically transfer ownership of the connections.
In this tutorial, I will show you, step by step, how to safely handle this situation by sharing the flow with another user and updating the connections. So the flow continues to work even after the original account is removed.
Create a Test User Account in the Microsoft 365 Admin Center
For this scenario, I created a test user account in the Microsoft 365 Admin Center. This account was used to build the Leave Management application and create all the Power Automate flows.

To create the test user:
- Open the Microsoft 365 Admin Center.
- Navigate to Users → Active users.
- Click on Add a user.
- Enter the required details such as display name, username, and domain.
- Assign the necessary licenses (Power Apps and Power Automate).
- Complete the setup process.
After creating the user account, I logged in using this test user and created the Cloud Flows for the application.
Create a Cloud Flow Using the Test Account
After creating the test user account, log in using that account and create a Cloud Flow.
Before creating the Cloud Flow, I first created a SharePoint list to store the Leave Management details.
The list contains the following columns:
- Employee Name (Single line of text)
- Leave Type (Choice)
- Start Date (Date and Time)
- End Date (Date and Time)

This SharePoint list will be used as the trigger source for the flow. Whenever a new item is created in this list, the Power Automate flow will trigger and send an email notification.
Follow the steps below to create the flow:
- Sign in to Power Automate using the test user account. Click on Create from the left navigation menu. Select Automated cloud flow.

- Enter a flow name (Leave Request Notification Flow). Choose the trigger: When an item is created (SharePoint). Click Create.

- Then provide the following required parameters:
- SharePoint Site Address
- List Name (Leave Management)

- Add the action Send an email (V2) from Outlook and provide the parameters below:
- To: Employee Email
- Subject: Your Leave Request (@{triggerBody()?[‘Title’]}) Submited Succesfully
- Body:
Hi @{triggerBody()?['EmployeeName/DisplayName']},
Your Leave Request Submited Succesfully Below are the Detalis:
Leave Type: @{triggerBody()?['LeaveType/Value']}
Start Date: @{formatDateTime(triggerBody()?['StartDate'],'dd/mm/yyyy')}
End Date: @{formatDateTime(triggerBody()?['EndDate'],'dd/mm/yyyy')}
Thanks