Skip to main content

Notifications

Power Automate - General Discussion
Answered

Changing the Primary Owner of a Cloud Flow Programatically

Posted on 3 Nov 2024 14:21:27 by 24
Hi everyone, 
 
Need your assistance and guidance here.
 
We have a user that just left the organization and he owns several flows in our solution, which has more than 300 cloud flows.
 
I have tried to change the ownership of the flow using PowerShell (Set-AdminFlowOwnerRole and Remove-AdminFlowOwnerRole) or through Power Automate Management actions, however it does not seem to work. We have multiple developers working on this solution and it is very common that flows are created and owned by their individual account. Has anyone been able to change the primary owner of the flows programmatically in any way, in the same way that it can be done by the user interface?
 
I am also looking to change the majority of the flows ownership to a service principal, hence I would need this to not to have to do it manually. Any help would be highly appreiciated. 
Categories:
  • FlyingTuga1 Profile Picture
    FlyingTuga1 24 on 26 Nov 2024 at 14:07:08
    Changing the Primary Owner of a Cloud Flow Programatically
    Hi @SudeepGhatakNZ, thanks for your replies. I was totally rude and forgot to mark as a solution. Using the Cloud Flows does not work, unfortunately.
  • Verified answer
    SudeepGhatakNZ Profile Picture
    SudeepGhatakNZ 14,035 on 04 Nov 2024 at 21:15:45
  • FlyingTuga1 Profile Picture
    FlyingTuga1 24 on 04 Nov 2024 at 04:41:33
    Changing the Primary Owner of a Cloud Flow Programatically
    Yes, I did, it only adds co-owners but does not set a new primary owner. I'm looking for a way to that does the same as this button:
     
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    SudeepGhatakNZ 14,035 on 03 Nov 2024 at 20:35:03
    Changing the Primary Owner of a Cloud Flow Programatically
    Did you try Power Automate Management actions?
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,129

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,797

Leaderboard

Featured topics