Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Refresh a users token upon logging in

(0) ShareShare
ReportReport
Posted on by 1,663 Super User 2025 Season 1

Is there a way to force power apps to pull a new access token when a user loads an app? I am having an occasional issue with a token being expired and a conditional access being blocked when the power app triggers a power automate flow that tries to connect to outlook or sharepoint. There appears to be an issue when people turn in old machines and received an updated machine, power apps tries, even though the change happened months ago, power apps or power automate is trying to use that old token instead of a fresh one from the machine they are accessing the app from. 

Categories:
  • Andy_Moyer Profile Picture
    28 on at
    Refresh a users token upon logging in
    Any luck on this issue?  I too am wondering how I can combat the expiring token and have some way to force my users to authenticate every 75 days via the app login.  
  • srduval Profile Picture
    1,663 Super User 2025 Season 1 on at
    Re: Refresh a users token upon logging in

    I haven't yet, I'll look into it. So in theory if I set a expiration timer for say 1 day, after that day they would have to login to power apps again before they could use the application and maybe it would fix my token issue by issuing a new token at login?

     

    Also I don't believe I have sufficient privileges to our azure portal/entra id to find and set this. Do you know where it could be found so I can ask my Azure admins? 

  • TuongDoan Profile Picture
    550 Super User 2025 Season 1 on at
    Re: Refresh a users token upon logging in

    I believe we have no way to accomplish this. However, we can set an expiration time for a login session. Have you checked the expiration rules in Entra ID?

     

     

    ---------------------------

    If the solution I provided assisted you in resolving this issue, kindly select "Accept as solution" This will help others in finding the solution more expediently 😄Also, a Thumbs up would be a great compliment!

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,618 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,957 Most Valuable Professional

Leaderboard