Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Logout users using API

    Posted 06-05-2025 18:03

    anon89369123 | 2021-09-30 16:08:42 UTC | #1

    Hi,

    I am using below code to logout users

    const client = platformClient.ApiClient.instance const tokensApiInstance = new platformClient.TokensApi() tokensApiInstance.deleteToken(user.id)

    The users are being logged out. But GenesysCloud is automatically logging users back in immediately


    anon90596342 | 2021-10-01 18:48:51 UTC | #2

    Hi Praveen_Palnati,

    I found some similar posts relating to your question, you can check out these two following previous posts for documentations and resources to logout users via API. Hope it helps. Also this forum is for customers to ask questions, if you are a Genesys employee, please ask questions in the corresponding chat room.

    https://developer.genesys.cloud/forum/t/logout-user-through-api/457 https://developer.genesys.cloud/forum/t/logout-via-js-api/2713

    Thanks


    anon89369123 | 2021-10-04 12:44:59 UTC | #3

    Thanks for the links. To share some more details, I have created a NodeJS app to logout all users in a division.

    I'll reach out internally. Thanks!


    system | 2021-11-04 12:45:22 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 12208