1. Kayako Download customers: we will continue to develop and support Kayako Download beyond July 2017, alongside the new Kayako for existing customers.

    Find out more.

  2. The forum you are viewing relates to Kayako Classic. If you signed up or upgraded to the new Kayako (after the 4th July 2016), the information in this thread may not apply to you. You can visit the forums for the new Kayako here.

How to get logged in staff id/staff username

Discussion in 'Developing, APIs and extending' started by l1dev, Aug 14, 2020.

  1. l1dev

    l1dev New Member


    Can someone provide me the code which will detect/print logged in staff user id/username ?
    I am new to kayako and not sure how to do this.

    Already checked many posts but I am unable to do it my end.

    Thank you in advance.
  2. Evgeny Kuchkov

    Evgeny Kuchkov Established Member

    Very simplified answer is table `swsessions` with `typeid` is staff id `swstaff` with `staffid` and `username` columns.

    If you want to dig deeper -- __swift/apps/base/library/UserInterface/class.SWIFT_UserInterfaceControlPanel.php check for functions with `OnlineStaff` in its' names.

Share This Page