# Deny reason message is not displayed for Login/Post-Login flow

**URL:** <https://community.auth0.com/t/deny-reason-message-is-not-displayed-for-login-post-login-flow/123681>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [December 25, 2023, 10:57pm UTC](https://community.auth0.com/t/deny-reason-message-is-not-displayed-for-login-post-login-flow/123681 "2023-12-25T22:57:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![artembondar](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/artembondar/32/60490_2.png) [@artembondar](https://community.auth0.com/u/artembondar)\
**Post date:** [December 25, 2023, 10:57pm UTC](https://community.auth0.com/t/deny-reason-message-is-not-displayed-for-login-post-login-flow/123681/1 "2023-12-25T22:57:58Z")

</div>

I have implemented a cusom Action, that will deny the login to a particular application if user does not have a particular role assigned. The rule itslef works, except the custom message is not printed to the user. The screen just make a refresh to enter username and password again.  
Here is my code. What am I missing?

 ![permission denied](https://global.discourse-cdn.com/auth0/original/3X/8/b/8b7aa3d75a18968aee7fce2a22ba7fe16ef41766.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:** [December 30, 2023, 3:19am UTC](https://community.auth0.com/t/deny-reason-message-is-not-displayed-for-login-post-login-flow/123681/2 "2023-12-30T03:19:01Z")

</div>

Hi @artembondar

Welcome back to the Auth0 Community!

I’ve checked the similiar topics and Docs and this particular answears your question [Auth0 Action api.access.deny is not displaying the provided error message to the user - #5 by tyf](https://community.auth0.com/t/auth0-action-api-access-deny-is-not-displaying-the-provided-error-message-to-the-user/92163/5)

> It is _not_ possible to show a similar custom error message via a post login action - Instead the `reason` provided in `api.access.deny(reason)` is included as a query param at the url the user is redirected back to.

If you want to provide any feedback regarding that please do open a topic in our feedback category here:

> **[Feedback](https://community.auth0.com/c/feedback/95)**
>
> Submit and vote on product feedback and feature requests.

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![artembondar](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/artembondar/32/60490_2.png) [@artembondar](https://community.auth0.com/u/artembondar)\
**Post date:** [December 30, 2023, 4:18am UTC](https://community.auth0.com/t/deny-reason-message-is-not-displayed-for-login-post-login-flow/123681/3 "2023-12-30T04:18:48Z")

</div>

Thank you @dawid.matuszczyk for finding this!

So it looks like this just does not work indeed ☹ Maybe just a missing functionlity, since the message is included in the query param user is redirected back to.

---

<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 13, 2024, 4:19am UTC](https://community.auth0.com/t/deny-reason-message-is-not-displayed-for-login-post-login-flow/123681/4 "2024-01-13T04:19:24Z")

</div>

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