# When user is blocked, Auth0 isn't sending the block email template

**URL:** <https://community.auth0.com/t/when-user-is-blocked-auth0-isnt-sending-the-block-email-template/125281>\
**Category:** Get Help\
**Tags:** emails, management-api\
**Created:** [January 21, 2024, 1:53pm UTC](https://community.auth0.com/t/when-user-is-blocked-auth0-isnt-sending-the-block-email-template/125281 "2024-01-21T13:53:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![blockey](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@blockey](https://community.auth0.com/u/blockey)\
**Post date:** [January 21, 2024, 1:53pm UTC](https://community.auth0.com/t/when-user-is-blocked-auth0-isnt-sending-the-block-email-template/125281/1 "2024-01-21T13:53:20Z")

</div>

We’re trying to use the block email template when a user is blocked over the management API and isn’t working (event if we use Auth0 portal to block it).

Is there any required configuration to enable it?

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [January 22, 2024, 1:26pm UTC](https://community.auth0.com/t/when-user-is-blocked-auth0-isnt-sending-the-block-email-template/125281/2 "2024-01-22T13:26:50Z")

</div>

Hi @blockey

Welcome to the Auth0 Community!

Thank you for posting your question. I’ve checked your tenant and found two things that may cause an issue. 1st is that I couldn’t find any information that the user was blocked in the logs. Can you confirm that you were blocking users, not a tenant member? 2nd is that your tenant is using Rules which are deprecated features. I would encourage you to switch from using them to Actions which are more reliable and easier to use.

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![blockey](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@blockey](https://community.auth0.com/u/blockey)\
**Post date:** [January 26, 2024, 9:57am UTC](https://community.auth0.com/t/when-user-is-blocked-auth0-isnt-sending-the-block-email-template/125281/4 "2024-01-26T09:57:28Z")

</div>

Dawid, I’ve blocked an user right now and it was logged as a update user api operation but the user profile is marked as blocked. Is it correct to block this way? Could you check now?

 ![Screenshot 2024-01-26 at 06.55.16](https://global.discourse-cdn.com/auth0/original/3X/e/2/e252f75215bdf2a8369938bf1a5ab601e0af9237.png)  
 ![Screenshot 2024-01-26 at 06.55.35](https://global.discourse-cdn.com/auth0/original/3X/2/7/2730a478ed3c1887cb0007c6cb602647c150e1c2.png)

---

<div class="post-metadata">

**Author:** ![blockey](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@blockey](https://community.auth0.com/u/blockey)\
**Post date:** [January 26, 2024, 10:50am UTC](https://community.auth0.com/t/when-user-is-blocked-auth0-isnt-sending-the-block-email-template/125281/5 "2024-01-26T10:50:43Z")

</div>

Oh, and when I try to use the Auth0 Flutter SDK for the user, it’s saying that `user is blocked`.  
Why the `User Blocked Email Template` isn’t triggering?

 ![Screenshot 2024-01-26 at 07.49.38](https://global.discourse-cdn.com/auth0/original/3X/3/2/32c7966fc72626a8d8a63149cbc5df3d9beda4a2.png)

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [January 31, 2024, 6:56pm UTC](https://community.auth0.com/t/when-user-is-blocked-auth0-isnt-sending-the-block-email-template/125281/6 "2024-01-31T18:56:42Z")

</div>

Hi @blockey

Sorry for the delay in the response. I’ve checked with the team, and the blocked account email template is triggered when you use the brute force protection.

> This email will be sent whenever a user is blocked due to suspicious login attempts.

To achieve the described flow, you will need to build an app and make a fire request to both the Management API to block the user and the email service to send emails to the user.

I hope this will help you.

Thanks  
Dawid

---

<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:** [February 14, 2024, 6:57pm UTC](https://community.auth0.com/t/when-user-is-blocked-auth0-isnt-sending-the-block-email-template/125281/7 "2024-02-14T18:57:03Z")

</div>

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