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

Community site session details

Session Id : 3W+v+k0PUX2G3DLNXkGi4H
Power Automate - Building Flows
Unanswered

Access token has expired or is not yet valid

Like (3) ShareShare
ReportReport
Posted on 11 Mar 2021 02:17:17 by 1,084

I have a flow that I am running to get groups of a user from AD.

 

Several of them came back as failed "Access token has expired or is not yet valid"

 

But hundreds more came back fine.  The users with this error, arent anything special. I'm a global admin anyway.

 

It seems to be some issue in Power automate?  How do I get around this?

 

Terry

I have the same question (0)
  • markf Profile Picture
    9 on 03 Apr 2023 at 15:01:11
    Re: Access token has expired or is not yet valid

    Thanks, I'll give that a go

  • jcollins Profile Picture
    149 on 24 Mar 2023 at 16:56:28
    Re: Access token has expired or is not yet valid

    Create a new connection to the mailbox and maybe delete/re-add the action with the new connection to the mailbox. 

  • jcollins Profile Picture
    149 on 24 Mar 2023 at 16:55:31
    Re: Access token has expired or is not yet valid

    He's saying to create a new connection to your resource (ie: Outlook) and use that new connection in the flow. 

  • markf Profile Picture
    9 on 24 Mar 2023 at 08:01:53
    Re: Access token has expired or is not yet valid

    I'm seeing the same. The errors happen randomly about once a month. Oddly they are all related to mailbox calls - creating rules or renewing subscriptions. Glad of any ideas

  • Bart-Rennes Profile Picture
    3 on 20 Jan 2023 at 09:21:14
    Re: Access token has expired or is not yet valid

    Does someone has a fix? I have same problem, it is random, impossible to reproduce on demand.

  • schuess3 Profile Picture
    353 on 24 May 2021 at 17:42:29
    Re: Access token has expired or is not yet valid

    I too have the same issue, but I do not understand what you are suggesting for a fix @v-duann-msft ? Can you re-phrase or be more specific?

     

    Thanks

    matt

  • jcollins Profile Picture
    149 on 07 May 2021 at 15:57:05
    Re: Access token has expired or is not yet valid

    Hi @Mattw112IG ,  I'm getting the same thing. Using the Get user Profile & Get Manager actions to get just 88 staff profiles.  Mine runs everyday and each day it fails on random accounts.   I am leaning towards a threshold limit being reached and then it throttles the action long enough to fail and then picks up again.  The hunt continues... let me know if you find anything. Cheers! 
    Joe

  • Mattw112b Profile Picture
    1,084 on 16 Mar 2021 at 15:02:39
    Re: Access token has expired or is not yet valid

    Hi thanks,

    But like I said some work fine and others give this message...

     

    So maybe user groups  1-10 work, 11 fails, 12-15 work, 16 fails...

     

    So it isn't that all of them fail at some time threshold.

     

    Thanks,

    Terry

  • v-duann-msft Profile Picture
    on 11 Mar 2021 at 07:20:47
    Re: Access token has expired or is not yet valid

    Hi @Mattw112IG 

     

    Thank you for posting.

     

    According to your description, you got access token error for specific user while running flow.

     

    Actually, the error has nothing to do with flow. This is normal behavior which is designed based on system security mechanism.

     

    This is access token lifetime limitation and we are not able to configure from user side. Thus, you could only update or create a new connection to the connector before the Flow Access Token Expires as workaround.

    https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-configurable-token-lifetimes

     

    Hope the content above may help you.

     

    Thanks

    Anna

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading started