User Functions

User Functions are used to access user information and actions on the inSCADA Platform.

Get Last User's Actions

object[] ins.getLastAuthAttempts()

Provides a list of the last 10 user actions on the inSCADA Platform.

Return Value: Returns a list of objects with user actions.

Syntax

return ins.getLastAuthAttempts();

// return values : 
// [{"username":"inscada","date":1564687660227,"ip":"78.162.177.13","isSuccessful":true,"msg":"User logged in","id":288},
// {"username":"inscada","date":1564649132209,"ip":"81.214.24.77","isSuccessful":true,"msg":"User logged in","id":287},
// {"username":"inscada","date":1564644787559,"ip":"81.214.24.77","isSuccessful":true,"msg":"User logged in","id":286},
// {"username":"muhammed","date":1564641740151,"ip":"81.214.24.77","isSuccessful":true,"msg":"User logged in","id":285},
// {"username":"mert","date":1564641596034,"ip":"178.247.54.46","isSuccessful":true,"msg":"User logged in","id":284},
// {"username":"mert","date":1564641199818,"ip":"178.247.54.46","isSuccessful":true,"msg":"User logged in","id":283},
// {"username":"mert","date":1564641186140,"ip":"178.247.54.46","isSuccessful":true,"msg":"User logged in","id":282},
// {"username":"inscada","date":1564641179537,"ip":"178.247.54.46","isSuccessful":true,"msg":"User logged in","id":281},
// {"username":"habib","date":1564606026127,"ip":"78.162.177.13","isSuccessful":true,"msg":"User logged in","id":280},
// {"username":"aliriza","date":1564604162133,"ip":"178.233.17.75","isSuccessful":true,"msg":"User logged out","id":279}]

Last updated