Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  User account gets deleted when performing token delete

    Posted 03-01-2026 14:34

    Hi Team,

    We are experiencing the below scenario in the Prod Instance of Genesys Cloud.

    "The user account gets deleted when we try to logout the user using token delete"

    API DELETE /api/v2/token/{userid}

    Note: We are not experiencing it in lower life cycle (dev org).

    Any Thoughts!!

    Regards,

    Vageesan


    #PlatformAPI

    ------------------------------
    Vageesan Saminathan
    ------------------------------


  • 2.  RE: User account gets deleted when performing token delete

    Posted 03-02-2026 11:36

    Hello,

    If you are sure that you don't have another piece of code which deletes the user, then I would suggest to open a ticket with Genesys Cloud Support/Customer Care.

    We do not have the ability to access customer logs and data from the forum.

    Regards,



    ------------------------------
    Jerome Saint-Marc
    Senior Development Support Engineer
    ------------------------------



  • 3.  RE: User account gets deleted when performing token delete
    Best Answer

    Posted 03-03-2026 17:50

    I'm sure you've considered this already, but the issue you describe could be easily explained if you accidentally used this API:

    API DELETE /api/v2/users/{userid}

    instead of this one?

    API DELETE /api/v2/token/{userid}

    Have you double checked you haven't made that typo?



    ------------------------------
    Nick Tait
    Genesys Consultant
    ------------------------------



  • 4.  RE: User account gets deleted when performing token delete

    Posted 03-05-2026 00:22

    URL in prod constants was wrong, was /api/v2/users/{userid} instead of /api/v2/tokens/{userid}



    ------------------------------
    Vageesan Saminathan
    ------------------------------



  • 5.  RE: User account gets deleted when performing token delete

    Posted 03-03-2026 19:21

    Hi Vageesan,
    DELETE /api/v2/token/{tokenId} should only revoke the token, not delete the user. Please double‑check you're not accidentally calling DELETE /api/v2/users/{userId} instead. If the issue persists and you've confirmed no other code is deleting the user, I recommend opening a ticket with Support, as this isn't expected behavior.



    ------------------------------
    Sergio Nicolas Gómez Riveros
    Unkonw
    ------------------------------



  • 6.  RE: User account gets deleted when performing token delete

    Posted 03-05-2026 00:22

    URL in prod constants was wrong, was /api/v2/users/{userid} instead of /api/v2/tokens/{userid}



    ------------------------------
    Vageesan Saminathan
    ------------------------------