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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / AccessToken is not upd...
Copilot Studio
Unanswered

AccessToken is not updated after the initial token is expired.

(0) ShareShare
ReportReport
Posted on by 67

I build a chatbot using Power Virtual Agents (preview version).

I set up SSO with AzureAD and deploy the chatbot to Microsoft Teams.

It works for first 1-2 hours, but after that (maybe after the initial token is expired) I cannot access 'System.User.AccessToken' information and I get 'InfiniteLoopInBotContent' error. It seems the bot try to re-authenticate but it doesn't work.

 

And, 'System.User.AccessToken' is not in the variable list. (So, I open 'code editor' and type it manually).

 

Help.

I have the same question (0)
  • HenryJammes Profile Picture
    Microsoft Employee on at

    Hi @T_TERADA 

    I don’t believe SSO is supported for the Microsoft Teams channel on the preview version, yet. The documentation calls out it’s only supported for custom websites: 

    https://learn.microsoft.com/en-us/power-virtual-agents/preview/configure-web-sso

     

     

    In Power Virtual Agents preview, SSO is supported for the custom website channel only. It's not supported for the following channels:

    • Azure Bot Service
    • Demo website
    • Facebook
    • Microsoft Teams
    • Mobile app

     

    Can you use the Only in Teams authentication setting instead? 

  • T_TERADA Profile Picture
    67 on at

    Hi Henry,

    Thank you for your information.

    I'd like to use AuthToken instead of UserID due to security reason.

    But, I'll 'Only in Teams authentication setting' instead until SSO is supported.

  • HenryJammes Profile Picture
    Microsoft Employee on at

    Thanks @T_TERADA, out of curiosity, what are the security concerns with using the native Only in Teams setting?

  • HenryJammes Profile Picture
    Microsoft Employee on at

    Thanks @T_TERADA, out of curiosity, what are the security concerns with using the native Only in Teams setting?

  • T_TERADA Profile Picture
    67 on at

    Hi Henry,

    My chatbot call a REST API to server in Azure. In this API, I'd like to use AccessToken.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 130 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 123

#3
chiaraalina Profile Picture

chiaraalina 33 Super User 2026 Season 1

Last 30 days Overall leaderboard