web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Switching Accounts of ...
Power Automate
Suggested Answer

Switching Accounts of Service Principal Users in Connection References

(0) ShareShare
ReportReport
Posted on by 35
Is there an easy way to switch accounts of Service Principals in Connection References to Dataverse?
 
We switched to a Service Principal 2 years ago, that key expired.  I can't change that key in an existing connection reference.  I have to create a whole new Connection Reference and then update 100's of flows that use that connection reference?
 
This is very cumbersome!
 
Categories:
I have the same question (0)
  • Suggested answer
    Fredrik_A Profile Picture
    3,570 Super User 2026 Season 1 on at
    Hello,
     
    From my knowledge, it's not possible, but there seem to be a workaround according to Copilot when I asked, not sure how accurate it is though. I havn't tested it myself, but it might be worth a shot.  
     
    Create a New Secret in Azure for your existing Service Principal.
    Create a New Connection:
    Start a new cloud flow (you can discard it later).
    Add a Dataverse trigger (e.g., "When a row is added").
    In the trigger, click the “...” menu > “+ Add new connection”.
    Choose “Connect with service principal” and enter the new credentials.
    Name the connection clearly (e.g., Dataverse Automation (May 2025)).
    Update the Connection Reference:
    Go to your Solution > Connection References.
    Click Edit on the reference used by your flows.
    Select the new connection and click Save.
    This will update all flows using that reference in the background 2 3.
    Clean Up:
    You can delete the old connection and secret.
    The UI might falsely claim the old connection is still in use
     
    Maybe someone else has a better workaround than the one I found?
     
    If my response solved your issue, please mark it as ✅ Accepted Answer and give it a like.
  • Pstork1 Profile Picture
    69,129 Most Valuable Professional on at
    @StretchFredrik is correct.  Connection References in Solutions are virtual wrappers around a connection. Its the Connection that has the reference to the Service Principal, not the Connection Reference. If you create a new Dataverse Connection using an updated Service Principal you can edit the solution and swap out the connection in the Connection Reference. You will however need to edit each Connection Reference to update it.  You will not however need to edit each flow, only the Connection Reference.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard