Change The Owner Of A Power Automate Workflow Using PowerShell
Maybe your like
You can change the owner of a Flow if you are the creator of the Flow or if you have Global Admin privileges in the tenant.
# First, install the `AzureAd` module if it's not already installed. Otherwise, Import it Install-Module AzureAd Import-Module AzureAd -Verbose # Connect to Azure AD and get the ID of the current owner of the flow. Connect-AzureAd $uid = Get-AzureAdUser -ObjectID username@org.com | Select-Object ObjectId # Optionally cache your credentials using the below cmdlet Add-PowerAppsAccount # Get all flows created by the given user Get-AdminFlow -CreatedBy $uidSample Output:
FlowName : 5846ebb0-0000-0000-0000-f5564aefdf9b Enabled : True DisplayName : CoolFlow2000: Create Profits 10x UserType : CreatedTime : 2021-09-09T16:08:25.372062Z CreatedBy : @{tenantId=662464a5-0000-0000-0000-f4771c7df5a7; objectId=b7ad96f2-0000-0000-0000-ce05758b4db2; userId=b7ad96f2-0000-0000-0000-ce05758b4db2; userType=ActiveDirectory} LastModifiedTime : 2021-10-07T21:23:29.9401081Z EnvironmentName : 753ff239-0000-0000-0000-c2a0ec20c82a Internal : @{name=5846ebb0-0000-0000-0000-f5564aefdf9b; id=/providers/Microsoft.ProcessSimple /environments/753ff239-0000-0000-0000-c2a0ec20c82a/flows/5846ebb0-0000-0000-0000-f 5564aefdf9b; type=Microsoft.ProcessSimple/environments/flows; properties=}Copy the Environment and FlowName properties to variables.
# Set the owner of the flow to the given user Set-AdminFlowOwnerRole ` -EnvironmentName $EnvironmentName ` -FlowName $FlowName ` -RoleName CanEdit ` -PrincipalType User ` -PrincipalObjectID $uidAlso, you can use PowerShell to disable or enable flows, which can help if the above commands do not work as expected.
# Disable a flow Disable-AdminFlow -EnvironmentName $EnvironmentName -FlowName $FlowName # Re-enable the flow Enable-AdminFlow -EnvironmentName $EnvironmentName -FlowName $FlowNameSource: Microsoft.PowerApps.Administration.PowerShell | Microsoft Docs
Tag » How To Change Owner Powershell For Powerautomate Application
-
How To Change The Original Owner Of A Flow?
-
Change The Original Owner Of A Power App & Flow
-
Changing The Owner Of Canvas Apps & Flows - Power Maverick
-
3 Simple Ways To Change The Owner Of A Power Apps App
-
PowerApps - Change Owner Using A Flow - YouTube
-
Power Apps Change The App Owner With PowerShell - YouTube
-
Steps To Reassign Power Automate Flows To A New Owner
-
Power Apps Change The App Owner With PowerAutomate
-
Transfer Ownership Of A PowerApp Using PowerShell
-
SharePoint Online: How To Change Site Owner (Primary Admin ...
-
How To Change PowerApps Owner Using PowerShell
-
Power-platform/powerapps- At Main - GitHub
-
Inventory Flows By Owner - CLI For Microsoft 365
-
How Do I Change The Owner On My Microsoft Flow? #M365AMA