# Know if a user is blocked by brute force protection

**URL:** <https://community.auth0.com/t/know-if-a-user-is-blocked-by-brute-force-protection/87164>\
**Category:** Get Help\
**Tags:** blocked-account, rules, block, lock, login, auth0\
**Created:** [July 19, 2022, 12:50am UTC](https://community.auth0.com/t/know-if-a-user-is-blocked-by-brute-force-protection/87164 "2022-07-19T00:50:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas.gonzalez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lucas.gonzalez/32/33884_2.png) [@lucas.gonzalez](https://community.auth0.com/u/lucas.gonzalez)\
**Post date:** [July 19, 2022, 12:50am UTC](https://community.auth0.com/t/know-if-a-user-is-blocked-by-brute-force-protection/87164/1 "2022-07-19T00:50:00Z")

</div>

Hi, I want to know if there’s any way to catch if a user is or has been blocked after X number of failed attempts.

I was thinking of a rule, action, or hook that could catch when the user gets blocked so we can use some logic, like sending an SMS from our system to global admins.

Something like:  
`User ---> Login attempt ---> action check if user will be/has been blocked ----> Some logic in action, rule or hook`

I hope we can find a solution together.  
Thanks.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [July 19, 2022, 1:39am UTC](https://community.auth0.com/t/know-if-a-user-is-blocked-by-brute-force-protection/87164/3 "2022-07-19T01:39:46Z")

</div>

Hi @lucas.gonzalez,

Thanks for reaching out to the Auth0 Community!

I understand that you would like to know how to know if a user is blocked by brute force protection.

To do so, I recommend using the Management API’s [Get a user’s block endpoint](https://auth0.com/docs/api/management/v2#!/User_Blocks/get_user_blocks_by_id) and set the **`consider_brute_force`** to true. By doing so, you can determine if the user is blocked by brute force protection.

I hope this helps!

Please do not hesitate to reach out if you have any further questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![josiah\_devizia](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/josiah_devizia/32/33352_2.png) [@josiah\_devizia](https://community.auth0.com/u/josiah_devizia)\
**Post date:** [January 10, 2023, 7:29pm UTC](https://community.auth0.com/t/know-if-a-user-is-blocked-by-brute-force-protection/87164/4 "2023-01-10T19:29:44Z")

</div>

Hi @rueben.tiow,

I’m looking to show in a User Grid the status of users, which needs to consider if they are blocked. I have noticed that if the user is blocked due to brute force protection, the search user endpoint doesn’t return any properties indicating that the user is blocked. I would have expected that the `blocked` attribute would show as true. Is there a way to achieve this without making a request to the user block endpoint for every user on the page?

Thanks

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 11, 2023, 12:44am UTC](https://community.auth0.com/t/know-if-a-user-is-blocked-by-brute-force-protection/87164/5 "2023-01-11T00:44:44Z")

</div>

Hi @josiah_devizia,

> [@josiah\_devizia](#):
>
> Is there a way to achieve this without making a request to the user block endpoint for every user on the page?

Unfortunately, there isn’t an endpoint that can query for a list of brute-force blocked users.

I understand the current solution of using the Get a user’s block endpoint would not be scalable.

For now, my best recommendation is to use the [Logs](https://manage.auth0.com/#/logs/) to find the users who are blocked from brute force. In the logs, search for the `limit_wc` [log event type code](https://auth0.com/docs/deploy-monitor/logs/log-event-type-codes).

Lastly, I recommend upvoting the [Find brute-force blocked users in User Management panel](https://community.auth0.com/t/find-brute-force-blocked-users-in-user-management-panel/93230) feedback request. This way it can attract more votes, with higher votes leading to a higher implementation priority.

I hope this helps!

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 25, 2023, 12:45am UTC](https://community.auth0.com/t/know-if-a-user-is-blocked-by-brute-force-protection/87164/6 "2023-01-25T00:45:26Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
