I am new to learning Power Automate and am looking for clarification on how credentials are stored when a flow is shared.
Currently, I am developing a few flows that will help our Project Management team set up new SharePoint team sites for each new project they have. When I add an action to SharePoint, it uses my credentials and ties them to the request. Having them attached to the Flow is fine as long as it is on my account. The main issue I've come into is that if I leave the company, The connection will tie the automation to my account, and I will have to share all the Flows on my profile with a team member. The automation needs to retain my credentials to function correctly, and if they have that Flow with my connection, they can modify those requests and actions to do anything they want. I am a global 365 Admin, and I do not want just any user to have access to those privileges.
My first thought is to create a new group with only admins as group owners and share the Flow with that group so it is "hosted." This way, the automation should still run, and if changes need to be made to the script, I have to join the created group.
After reading about Team flows, it didn't clear up all my questions. I understand that this is only an issue if the flow is getting shared and the flow will run as long as it is apart of an active user account. I am just trying to find the best practice for hosting these scripts.
Any help would be greatly appreciated, Thank you for your time!