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 / Copilot Studio + OAuth...
Copilot Studio
Answered

Copilot Studio + OAuth2 identity provider - Sign Out

(1) ShareShare
ReportReport
Posted on by 12

On my Copilot, I've configured Copilot Studio's Security to use OAuth2 identity provider (Auth0) and it works well. I can sign in. It populates the System.User.AccessToken correctly and I can use it in my API calls.
I use the same Copilot in Teams, Mobile and Web channels, but I don't know how to trigger a sign-out from a Topic.
There's an Authenticate module, but no logout. Is there a way to set the System.User.IsLoggedIn variable to false for security reasons?
I need to support the ability for someone that's been logged in via the OAuth2 identity provider (not AAD/Entra) to sign-out.
How can I best do that?

Categories:
  • Verified answer
    adilei Profile Picture
    Microsoft Employee on at

    I think it's only available from the code editor right now:

     

     - kind: SignOutUser
     id: 6EWZEC
    
     - kind: SendActivity
     id: sendActivity_FEhEU9
     activity: "logged in: {System.User.IsLoggedIn}"
  • Rodney-AKQA Profile Picture
    12 on at

    Beautiful & timely fix. Thanks so much!

  • CU19100102-0 Profile Picture
    5 on at
    This helped me too. Thanks. 

    I have a related question.
    And, it is working for the best case scenario where if the user logs in, they can access the following content. 
     
    But if the user puts in the wrong code or if the user doesn't want to continue with the login process, the copilot doesn't give any error or any option to break the login loop.
     
     
    Is there a solution to that?
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Mohsin Ali Profile Picture

Mohsin Ali 298

#2
Valantis Profile Picture

Valantis 158 Super User 2026 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 150 Super User 2026 Season 2

Last 30 days Overall leaderboard