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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / When does a Power Plat...
Power Automate
Suggested Answer

When does a Power Platform connection get expired?

(0) ShareShare
ReportReport
Posted on by 1,811 Super User 2024 Season 1
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: -
  1. One to access the SharePoint site
  2. One to send the email
Now based on my experience, the service account connection will need to be re-authenticated in those cases:-
  1. If the admin reset the service account password
  2. If the admin adds an MFA to the service account or even remove existing MFA
  3. 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
Categories:
I have the same question (0)
  • Suggested answer
    Pstork1 Profile Picture
    68,707 Most Valuable Professional on at
    The refresh timing can vary depending on the connector, but in general the OAuth tokens in the Power Platform will refresh after 90 days.  The refresh token will do this automatically unless the account that created the original token has been changed in some way. For example, a password change or authentication requirement change (MFA).
     
    So if a user changes their password the OAuth token will continue to be valid until its time for the refresh (up to 90 days).  If an Admin changes the password that will also find the token and invalidate it as well.

    ----------------------------------------------------------------------------------
    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
     
  • johnjohnPter Profile Picture
    1,811 Super User 2024 Season 1 on at
    @@Pstork1 ok noted thanks. now for one of the tenants i changed the service account password using the service account itself. from "view Account" >> "Password".. so instead of waiting for up to 90 days, to reauthnticate, can i reauthnticate now ? For example, if i go to a connection >> and i click on "Switch account", and then i relogin using the same account, will this cause the token to refresh now?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard