1. User Management
  • Overview
  • Application Guides
    • Frontend
      • Get Started - React App
      • Get Started - HTML and JS
      • Get Started - Angular JS
      • Get Started - Next JS App
    • Backend
      • Get Started - Node JS
      • Get Started - Golang
      • Get Started - ASP.NET
      • Get Started - JAVA
  • Dashboard
    • API Credentials
    • Organization
    • Social Login
    • Customize Email Template
    • Configure Custom Domain
    • IT Admin Portal
  • Authentication
    • Login Widget
    • Magic Link
    • Google Social Login
    • Multi-Factor Authentication
    • Single Sign-On Overview
    • Setup SSO Connection
  • Security
    • Overview
    • Authentication
      • Password Hashing and Storage
      • Multi-Factor Authentication Methods and Implementation
      • Session Management
    • Attack Protection
      • Bot Detection
      • Breached Password Detection
      • Brute Force Protection
      • Log Events
      • Secure JSON Web Tokens (JWT)
      • Secure OpenID Connect (OIDC)
      • Suspicious IP Throttling
    • Data Security
      • Data Encryption At Rest and In Transit
      • Secure Storage of Secrets (Keys, Credentials)
      • Sensitive Data Handling
    • Infrastructure
      • Security Considerations for Cloud Provider or Deployment Model
      • Threat Modeling
  • API References
    • Authentication
      • MagicLink
        • Email a Magic Link
        • Resend Email Magic Link
        • Verify Magic Link
        • Ping Status
      • Magic Auth Code
        • Email a Magic Auth Code
        • Resend Magic Auth Code
        • Verify Magic Auth Code
      • Phone Authentication
        • Send Magic Auth Code via SMS
        • Resend Magic Auth Code via SMS
        • Phone Magic Auth Verify
      • PassKey
        • Initiate Passkey Login
        • Passkey Registration Initialize
        • Finish Passkey Authentication
        • Complete Passkey Registration
        • Check User Passkey Authentication Status
        • List User PassKey Credentials
        • Update Passkey Name
        • Delete Associated Passkey
      • GET Auth Status
    • Token
      • Refresh Token
      • Access Token By Auth Code
    • Mutli-Factor Authentication (MFA)
      • MFA Access Token
      • List of Authenticators
      • MFA Enroll TOTP
      • Initiate MFA
      • QR Code Image API
      • Validate MFA Token
      • Get Backup Code
    • Role And Permission
      • List All Roles
      • List All Permission
      • Create New Role
      • Update Existing Role
      • Update Permission By Permission Id
      • Remove Organization Role By Role Id
      • Remove Organization Permission By Permission Id
    • User Management
      • List All Users
        GET
      • GET User By User Id
        GET
      • GET User by User Email Address
        GET
      • Create a User
        POST
      • Update User by User Id
        PUT
      • Verify User Status By User Id
        POST
      • Delete User By User Id
        DELETE
      • Manage User Roles
        PUT
      • GET Users Organizations
        GET
      • GET User Login Logs
        GET
    • Organization
      • Add New Organization
      • Get Organization
      • Get All Organization
      • Update Organization
      • Delete Organization
      • GET Configuration By Client Id
      • GET Configuration By Custom Domain
  1. User Management

GET User Login Logs

GET
https://api.ssojet.com/api/v1/users/{{userid}}/loginlogs

List User Login Logs#

This endpoint makes an HTTP GET request to retrieve a list of login logs for the specfic user. It provides detailed information about login logs, including its ip address, device, and more.

Response#

The response will be a JSON object following the schema below:
{
    "login_logs": [
        {
            "IpAddress": "183.83.177.227",
            "Country": "India",
            "City": "Jaipur",
            "UserAgent": "",
            "Name": "Amazon CloudFront",
            "Os": "",
            "Device": "",
            "CreatedAt": "2024-07-10T12:16:19.647Z"
        }
    ]
}
The response will contain an array of permissions, where each permission is represented as a string.
Response Status Code
200 OK: Magic link sent successfully.
400 Bad Request: Invalid email format.
500 Internal Server Error: An error occurred while processing the request.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
client_id
string 
required
This identifies the application making the request to the SSOJET server. You can find your client ID on the API Keys page in the dashboard
Example:
string
Header Params
accept
string 
required
Example:
*/*
accept-language
string 
required
Example:
en-US,en;q=0.9
user-agent
string 
required
Example:
SSOJET API
Content-Type
string 
optional
Default:
application/json
User-Agent
string 
optional
Default:
SSOjet/1.0.0 (https://ssojet.com)

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://api.ssojet.com/api/v1/users/{{userid}}/loginlogs?client_id=string&client_id=' \
--header 'accept: */*' \
--header 'accept-language: en-US,en;q=0.9' \
--header 'user-agent: SSOJET API' \
--header 'User-Agent: SSOjet/1.0.0 (https://ssojet.com)' \
--header 'Content-Type: application/json'

Responses

⚪0GET User Login Logs
application/json
Body
login_logs
array [object {8}] 
required
IpAddress
string 
required
Country
string 
required
City
string 
required
UserAgent
string 
required
Name
string 
required
Os
string 
required
Device
string 
required
CreatedAt
string 
required
Example
{
  "login_logs": [
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-10T12:16:19.647Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-10T13:18:37.031Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-11T04:37:58.788Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-11T05:10:59.995Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-11T07:21:15.14Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-11T07:57:47.266Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-11T08:33:34.256Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-11T09:13:00.404Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-11T11:45:38.782Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-11T12:04:38.16Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-11T12:11:36.647Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-11T12:43:16.175Z"
    },
    {
      "IpAddress": "150.107.189.226",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-13T06:47:28.434Z"
    },
    {
      "IpAddress": "150.107.189.226",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-13T06:49:23.766Z"
    },
    {
      "IpAddress": "150.107.189.226",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-13T07:07:22.779Z"
    },
    {
      "IpAddress": "150.107.189.226",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-13T08:10:19.02Z"
    },
    {
      "IpAddress": "2409:40d4:12b:c6c3:5183:3409:ec6d:964d",
      "Country": "India",
      "City": "UnknownCity",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-13T11:11:10.976Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-15T04:13:49.556Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-15T04:19:21.307Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-15T05:05:12.052Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-15T05:36:15.483Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-15T06:24:53.436Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-15T06:25:38.33Z"
    },
    {
      "IpAddress": "183.83.177.227",
      "Country": "India",
      "City": "Jaipur",
      "UserAgent": "",
      "Name": "Amazon CloudFront",
      "Os": "",
      "Device": "",
      "CreatedAt": "2024-07-15T06:28:51.758Z"
    }
  ]
}
Previous
GET Users Organizations
Next
Add New Organization
Built with