Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  User account gets deleted when performing token delete

    Posted 2 days ago

    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 2 days ago

    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

    Posted 11 hours ago

    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 9 hours ago

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