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 / 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:
I have the same question (0)
  • Verified answer
    adilei Profile Picture
    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

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 > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 251 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 201 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard