Sometimes in the rapid development tools offered by power platform such as Power Automate, we have lot of things that get created behind the scenes and which we are not fully aware of.
For example, when we create an automate flow or a scheduled flow that retrieve SharePoint items and which send emails,then 2 connections will be created: -
- One to access the SharePoint site
- One to send the email
Now based on my experience, the service account connection will need to be re-authenticated in those cases:-
- If the admin reset the service account password
- If the admin adds an MFA to the service account or even remove existing MFA
- If the admin revoked sessions and passwords even without changing the service account password
While if I login to the office 365 using the service account and I change the password by myself, by going to “view account” >>
Then Password, change password:-
The connection will keep working.
So I am not fully sure, how the authentications for those connections work and when they need to be reconfigured/re-authentication?
For example, let say I work on a project , and they gave me a service account with a password and MFA, I login to the power platform, and I accept the MFA , I do my work, and have connections to SharePoint, key vault, one drive, outlook, and so on. Then will those connections expiry after specific period? Or as long as the service account password or the account security policy did not change then the connection should stay active? I am reading some articles that says power platform uses OAuth and this token will get expired after 90 days, some says after 1 years, and some says that when the token expires a refresh token will be sent to automatically and will reauthnticate the connections.. so not sure which info is correct?
Thanks