Hello Gonzalo,
If I am not mistaken, logging out of Genesys Cloud is different from an agent/user becoming inactive. There may be a way to link the two events programmatically via API, but both events themselves are not exclusively mutual.
Proper logout involves proper authentication handling, as described
here in the Developer Center. It might be good to post your query and steps trying to do in the
Developer Forum so dev experts can chime in.
------------------------------
Nico Feliciano
Genesys - Employees
------------------------------