# Auth0 Action api.access.deny is not displaying the provided error message to the user

**URL:** <https://community.auth0.com/t/auth0-action-api-access-deny-is-not-displaying-the-provided-error-message-to-the-user/92163>\
**Category:** Get Help\
**Tags:** login, auth0\
**Created:** [October 11, 2022, 3:34pm UTC](https://community.auth0.com/t/auth0-action-api-access-deny-is-not-displaying-the-provided-error-message-to-the-user/92163 "2022-10-11T15:34:14Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [December 20, 2022, 9:51pm UTC](https://community.auth0.com/t/auth0-action-api-access-deny-is-not-displaying-the-provided-error-message-to-the-user/92163/5 "2022-12-20T21:51:44Z")

</div>

> [@jesse2](#):
>
> And that message is not shown in my signup lock form, only the default message is shown.
> 
> It means I am not able to use Actions and I’ll have to keep using Rules which are able to send back a customised error message to the Lock/Universal Login.

Thanks for following up on this and sharing your solution in another thread - To clarify (This is regarding New Universal Login), it _is_ possible to show a custom error message to a user via a pre user registration action, using `api.access.deny(reason, userMessage)`. 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.

> **[Actions Triggers: pre-user-registration - API Object](https://auth0.com/docs/customize/actions/flows-and-triggers/pre-user-registration-flow/api-object)**
>
> Learn about the pre-user-registration Action trigger's API object.

> **[Actions Triggers: post-login - API Object](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/api-object)**
>
> Learn about the post-login Action trigger's API object.

---

_[View the full topic](https://community.auth0.com/t/auth0-action-api-access-deny-is-not-displaying-the-provided-error-message-to-the-user/92163)._
