• Home
  • Installation manual
  • User manual
  • Forums
  • Support
Faveo Developers Documentation
  • Home
  • Installation manual
  • User manual
  • Forums
  • Support

Get authentication/login logs for a user

/Internal API / Helpdesk / System Logs / Login Logs / Get authentication/login logs for a user
  • June 11, 2021
  • Sandesh Menath
  • Login Logs

URL: api/login/info/{userId?}

Method: GET

Description : Gets the list of all the login logs for a user along with IP , browser and device info.

Path Parameter:

Parameter Type Required/Optional Description
userId integer Optional The id of the user

 

Success Response:

{
    "success": true,
    "data": {
        "allow_unrecognized_login": 1,
        "current_page": 1,
        "data": [
            {
                "id": 311,
                "authenticatable_type": "App\\User",
                "authenticatable_id": 1,
                "ip_address": "127.0.0.1",
                "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:89.0) Gecko/20100101 Firefox/89.0",
                "browser": "Firefox (v89)",
                "platform": "Mac (v10.15)",
                "device": "Apple (Mac)",
                "login_at": "2021-06-10 10:50:55",
                "logout_at": null,
                "session_token": "tJPZurYMuMYSOrmV2Jjc5FYugljQaeWunPd51nj1"
            },
            {
                "id": 310,
                "authenticatable_type": "App\\User",
                "authenticatable_id": 1,
                "ip_address": "127.0.0.1",
                "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:89.0) Gecko/20100101 Firefox/89.0",
                "browser": "Firefox (v89)",
                "platform": "Mac (v10.15)",
                "device": "Apple (Mac)",
                "login_at": "2021-06-10 10:48:39",
                "logout_at": null,
                "session_token": "3V3qxY1QsLanZRw6FpVHM0JsAIqSCvyMcuHntyDB"
            }
        ],
        "first_page_url": "http://faveo.helpdesk/api/login/info/1?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://faveo.helpdesk/api/login/info/1?page=1",
        "next_page_url": null,
        "path": "http://faveo.helpdesk/api/login/info/1",
        "per_page": 10,
        "prev_page_url": null,
        "to": 2,
        "total": 2
    }
}

Error Response:

{
success: false
message: "Permission denied. You don't have permission to perform this action"
}

 

 

Tagged: Testing

Related Articles

  • Delete login logs older than..

  • Permission to get notified via mail when logged in from new device

  • Logout from all devices

Categories

  • Admin Panel 21
  • Admin Settings 5
  • Agent Dashboard 13
  • Agent Panel 6
  • Agent Panel 1
  • API Setting 2
  • Approval Workflow 5
  • Asset Management 1
  • Asset Status 4
  • Asset Type 4
  • BreakLine 3
  • CAB Management 3
  • Change Management 17
  • Client Panel 6
  • CMDB 8
  • Contract Management 11
  • Core 1
  • Cron 2
  • Department 4
  • Error logs and debugging 2
  • Events 4
  • External API 10
  • Form builder 5
  • Forms 6
  • Help Topic 3
  • Helpdesk 28
  • Helpdesk 15
  • Internal API 14
  • Knowledge Base 5
  • Languages 2
  • LDAP 7
  • License Type Management 4
  • Location 1
  • Login Logs 4
  • Modules 2
  • Notify Module 4
  • Organization 2
  • Plugins 1
  • Plugins 3
  • Problem Management 8
  • Product 7
  • Queue 4
  • rating 5
  • Redaction 1
  • Release Management 7
  • Reports 8
  • SD Webhook 1
  • Servicedesk 3
  • Social Login 2
  • Sources 5
  • Standards 3
  • System Level Activity Logs 1
  • System Logs 6
  • System Setting 2
  • Tag 6
  • Team 5
  • Ticket Actions 11
  • Ticket Fields 4
  • Ticket Info 11
  • Ticket Priority 4
  • Ticket Status 6
  • Ticket Type 5
  • Time Track 3
  • Uncategorized 26
  • User Options 2

Popular Articles

  • Login
  • Faveo Helpdesk Programming Standards
  • Create Ticket V3
  • How to pass OAuth2 token in API version 3
  • Home
  • Installation manual
  • User manual
  • Forums
  • Support
© Ladybird Web Solution Pvt Ltd. All Rights Reserved. Powered by Ladybird