Access Control
journal
GET /api/v2/access-control?startOn=2018-08-06&finishOn=2021-08-06&userIds=1000000005,%201000000004&departmentId=1000000001&userGroupId=1000000008&ip=54.76.10.24&size=3 HTTP/1.1
Parameter | Description |
---|---|
|
filter’s start date |
|
filter’s finish date |
|
user group id |
|
department id |
|
List of user id (comma separated → userIds=1000000022, 1000000004). |
|
user ip address |
|
HTTP/1.1 200 OK
{
"content" : [ {
"loginAt" : "2020-03-18T17:54:00.000Z",
"user" : {
"id" : 1000000005,
"login" : "topmanager",
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"departmentName" : "Центральный офис",
"userGroupName" : "Топ-менеджмент",
"fired" : false
},
"ip" : "54.76.10.24",
"lastActionAt" : "2020-03-18T17:54:00.000Z"
}, {
"loginAt" : "2020-03-18T17:50:00.000Z",
"user" : {
"id" : 1000000005,
"login" : "topmanager",
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"departmentName" : "Центральный офис",
"userGroupName" : "Топ-менеджмент",
"fired" : false
},
"ip" : "54.76.10.24",
"lastActionAt" : "2020-03-18T17:51:00.000Z"
}, {
"loginAt" : "2020-03-18T17:48:00.000Z",
"user" : {
"id" : 1000000005,
"login" : "topmanager",
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"departmentName" : "Центральный офис",
"userGroupName" : "Топ-менеджмент",
"fired" : false
},
"ip" : "54.76.10.24",
"lastActionAt" : "2020-03-18T17:54:00.000Z"
} ],
"pageable" : {
"pageNumber" : 0,
"pageSize" : 3,
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"offset" : 0,
"paged" : true,
"unpaged" : false
},
"last" : false,
"totalElements" : 122,
"totalPages" : 41,
"first" : true,
"size" : 3,
"number" : 0,
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"numberOfElements" : 3,
"empty" : false
}
Path | Type | Description |
---|---|---|
|
|
an array of journal records |
|
|
user login date |
|
|
information about user |
|
|
user’s login |
|
|
user’s first name |
|
|
user’s family name |
|
|
user’s patronymic name |
|
|
user group name |
|
|
department name |
|
|
user ip address |
|
|
user last action date |
statistics
GET /api/v2/access-control/statistics?startOn=2018-08-06&finishOn=2021-08-06&userIds=1000000022&departmentId=1000000003&userGroupId=1000000006&ip=63.35.193.150 HTTP/1.1
Parameter | Description |
---|---|
|
filter’s start date |
|
filter’s finish date |
|
user group id |
|
department id |
|
List of user id (comma separated → userIds=1000000022, 1000000004). |
|
user ip address |
|
HTTP/1.1 200 OK
{
"content" : [ {
"user" : {
"id" : null,
"login" : "client",
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"departmentName" : null,
"userGroupName" : "Продавцы",
"fired" : null
},
"daysLoggedIn" : 1,
"workTimeHours" : 1,
"workTimeMinutes" : 23
} ],
"pageable" : {
"pageNumber" : 0,
"pageSize" : 10,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 0,
"paged" : true,
"unpaged" : false
},
"last" : true,
"totalElements" : 1,
"totalPages" : 1,
"first" : true,
"size" : 10,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 1,
"empty" : false
}
Path | Type | Description |
---|---|---|
|
|
an array of user access statistics |
|
|
information about user |
|
|
user’s login |
|
|
user’s first name |
|
|
user’s family name |
|
|
user’s patronymic name |
|
|
user group name |
|
|
the number of days the user logged in |
|
|
the number of times the user logged in |
|
|
time worked by the user in hours (considered if an hour has passed between logged in and the last action) |
|
|
time worked by the user in minutes (considered if an hour has passed between logged in and the last action) |