# Log out all users via API

**URL:** <https://meta.discourse.org/t/log-out-all-users-via-api/75851>\
**Category:** Feature\
**Created:** [Décembre 11, 2017, 11:25 UTC](https://meta.discourse.org/t/log-out-all-users-via-api/75851 "2017-12-11T23:25:55Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![typeoneerror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/typeoneerror/32/80817_2.png) [@typeoneerror](https://meta.discourse.org/u/typeoneerror)\
**Post date:** [Décembre 11, 2017, 11:25 UTC](https://meta.discourse.org/t/log-out-all-users-via-api/75851/1 "2017-12-11T23:25:55Z")

</div>

I’ve built a Discourse integration for our product that allows SSO with our product to a Discourse install. When a user is signed out on our app, I’m doing an API-backed POST via the [`log_out`](https://github.com/discourse/discourse_api/blob/master/lib/discourse_api/api/users.rb#L56) API. Is there a way to log _all_ users out or change settings remotely? If our user disconnects the Discourse integration, I’d love to nullify their custom SSO settings and sign out all users without having to do 100s of POST requests.

---

_[View the full topic](https://meta.discourse.org/t/log-out-all-users-via-api/75851)._
