Start a conversation

Retrieving User Activity Logs in Kayako

Overview

At times, you may want to see the activities of user accounts registered in your instance for either monitoring purposes or if you want to check sign-in logs due to a suspected security breach.

There are several ways you can retrieve activity logs as well as sign-in logs of users in Kayako. You can either use the Kayako UI or the API to retrieve these pieces of information.

 

Prerequisite

  • To retrieve the user activities data through the Kayako UI or using API, you will need a staff user account  (agent, collaborator, or admin).
  • Skills and knowledge of API (Application Programming Interface) calls.

 

Solution

Retrieving User Activity Logs Through the Kayako UI:

  1. Log in to Kayako.
  2. Search for the user and open the user profile.

    NOTE: Use the search function to look for a user's profile or go to https://domain.kayako.com/agent/users to search from the Users widget. Just change the "domain" with your actual domain name. Or you can search from the Users widget by clicking the icon on the left-hand panel.

  3. From there, you can review the user's log and see when the user has signed in and what changes the user made in Kayako.


    user_profile_activity_log.jpg

While in Kayako, you can also retrieve the list of users who logged in on a particular time or period.

  1. Click the User widget/icon on the left-hand panel.
  2. Use the 'Last logged in' filter by checking the box next to it.
  3. Set the condition by selecting the corresponding radio button.
  4. Select the date from the pop-up calendar or set the time window as desired.
  5. Review the result on the right-hand panel.

    activity_logs_user_widget.jpg

Should you need a more detailed report of a user's activity in Kayako, you may use the API to retrieve these pieces of information. If you pull a report through the API, it will contain information such as the type of activity the user performed, date and time, and the IP address used.

Retrieving User's Activity Logs Through the API

NOTE: The following procedure assumes that you have knowledge of the Postman client and have download and installed it on your system. You can use other API clients of your choice but these steps were taken using the Postman application.

  1. Log in to Kayako.
  2. Search for the user in question and open the user profile.

    NOTE: Use the search function to look for a user's profile or go to https://domain.kayako.com/agent/users to search from the Users widget. Just change the "domain" with your actual domain name. Or you can search from the Users widget by clicking the icon on the left-hand panel.

  3. Once the profile is open, get the user ID from the URL in the address bar as shown in the image below.

    NOTE: In the example below, the user ID is the number at the end of the URL which is 1. Repeat this step to gather all the user IDs you want to retrieve information about.


    get_user_ID.jpg
  4. Once you have the list of user ID/s, open your Postman client.
  5. Click on New on the upper-left corner and select Request on the pop-up screen.
    NOTE: The screen may look slightly different on a Mac computer. The succeeding screenshots were taken from a Windows installation.

    postman_new_request.jpg
  6. Select the GET method from the drop-down.

    get_request.jpg
    NOTE: Refer to this screenshot for the succeeding steps.

  7. Write the URL using this pattern:https://DOMAIN.kayako.com/api/v1/users/<User_ID>/activities.json
    • Replace<User_ID> with the values you obtained from step #3.
    • Replace DOMAINin the above URL with your Kayako domain.
  8. Click the Params tab and define a 'since' and 'limit' parameters. Set the limit to an appropriate number. You will notice the address is automatically updated as you type the values.

    • Since refers to the start date of activities to be retrieved. Date Format should be in Year-Month-Day
    • Limit is the max quantity of returned events.
  9. On the Authorization tab, select Basic Auth, and add your Kayako's credentials. (see screenshot below)

  10. Enter your Kayako email address and password in the Username and Password text fields. (see screenshot below)
    NOTE: If the user account you specified here has two-factor authentication enabled, you need to disable it
  11. Press Send.

    authentication_postman.jpg

NOTES:

  • If you are getting a different error code other then 'status 200', please refer to this response code documentation
  • You have the option to convert this data to a CSV file should you wish to peruse it using tables and graphs. We recommend you save the JSON file then look for a JSON to CSV file converter online. We do not provide support to anything beyond this point.
    save_response.jpg
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. ATLAS

  2. Posted

Comments