Getting user information by ID for detailed information in events. This request is needed to display the user's name in the filter if administrators navigate to the link with pre-filled filters.
GET /api/admin/v1/log-entries/users/{user}
int user, unique identifier of the user
int
200 OK
OK
Successful response
{ "id": 87, "name": "Name", "login": "user@mail.com", "created_at": "2022-03-24 11:26:58", "updated_at": "2022-03-30 16:48:54", "expired_at": null, "is_licence_limit_reached": false, "ptz_priority": 10, "access_token_id": null }
401 Unauthorized
Unauthorized
Authorization token is not provided or is invalid. Obtaining a token
curl -k --request POST \ --url 'https://your-domain/api/admin/v1/log-entries/users/{user}' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "user": 0 }'
$data = array ( 'user' => 0, ); $context = stream_context_create([ 'ssl'=>['verify_peer' => false], 'http' => [ 'method' => 'GET', 'header' => "Content-Type: application/json\r Accept: application/json", 'content'=>json_encode($data) ] ]); $result = file_get_contents('https://your-domain/api/admin/v1/log-entries/users/{user}', false, $context);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.