How to check Account Lockout Policy logs

Account Lockout Policy generates logs containing information related to the failed login attempts and account lockouts. This way, you can monitor security events and take action.

This guide walks you through checking the logs generated by Account Lockout Policy.

Go to Account Lockout Policy reference

Checking Account Lockout Policy logs

  1. Run the following GET request in your terminal to retrieve the data of blocked users.
Terminal window
curl --request GET \
--url https://api.azion.com/v4/identity/users?locked=true \
--header 'Accept: application/json' \
--header 'Authorization: 123'
  1. You’ll receive a response similar to this:
Terminal window
{
"count": 2,
"results": [
{
"id": 1,
...
"lockout": {
"locked_at": "20240101T10:20:01",
"unlock_at": "20240102T10:20:01",
}
}
]
}

Where:

KeyDescription
countRepresents the number of blocked user accounts. Example: 2
idRepresents the unique identifier for a user
lockoutInteger
  1. Additionally, you can also run the following GET request in your terminal to retrieve the data of allowed users.
Terminal window
curl --request GET \
--url https://api.azion.com/v4/identity/users?locked=false \
--header 'Accept: application/json' \
--header 'Authorization: 123'
  1. You’ll receive a response similar to this:
Terminal window
{
"count": 2,
"results": [
{
"id": 1,
...
}
}
]
}

Contributors