When the flow owner leaves the company, the flow will be disabled.
In this article, I will write about how to change the flow owner when they leave the company.
METHOD 1: USING POWER AUTOMATE FLOW
Create a Manually flow, put the required fields put roleName, put id
METHOD 2: USING POWERAPP- POWERSHELL
I- Install PowerApps PowerShell
- Execute the following commands firstly:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force
dir . | Unblock-File
- Import necessary modules:
Install-Module -Name Microsoft.PowerApps.Administration.PowerShell
Install-Module -Name Microsoft.PowerApps.PowerShell -AllowClobber
If you got other errors, also should try:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Install-Module PowerShellGet -RequiredVersion 2.2.4 -SkipPublisherCheck
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls -bor [Net.SecurityProtocolType]::Tls11 -bor [Net.SecurityProtocolType]::Tls12
II- Change Flow Owner
Copy and paste the following:
Then you just need to provide the required details like: flow id, user id..
Hope this helps!