Get User Login History

Gets the user login history.

get
/api/v2/tenants/{tenantId}/users/loginHistory/search

Gets the login history details of users.

Query Variables Description
id User ID.
loginName User login name.
startLoginDate Search for the users who logged in within a specific duration. startLoginDate denotes the from date.
endLoginDate Search for the users who logged in within a specific duration. endLoginDate denotes the to date.
startLogoutDate Search for the users who logged out within a specific duration. startLogoutDate denotes the from date.
endLogoutDate Search for the users who logged out within a specific duration. endLogoutDate denotes the to date.

Notes

There are special characters that can be used in a query string:

  • (+) represents the next field and must be URL-encoded.
  • (:) represents equals. An example is key : value.
  • Space characters must be URL-encoded.
  • Date format must be yyyy-MM-ddTHH:mm:ssZ (GMT).

Path Parameters

  • tenantIdstringrequired

    Describes the clientId or mspId of the tenant

Query Parameters

  • pageNointeger

    Default: 1

  • pageSizeinteger

    Default: 100

  • sortNamestring

    Default: id

  • isDescendingOrderboolean

  • queryStringstring

00