# Manage user information on callback(new UnauthorizedError("You do not have access"), user, context)

**URL:** <https://community.auth0.com/t/manage-user-information-on-callback-new-unauthorizederror-you-do-not-have-access-user-context/52012>\
**Category:** Get Help\
**Tags:** unauthorizederror, rules, users, auth0\
**Created:** [October 22, 2020, 6:58pm UTC](https://community.auth0.com/t/manage-user-information-on-callback-new-unauthorizederror-you-do-not-have-access-user-context/52012 "2020-10-22T18:58:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tareaslenguaje2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tareaslenguaje2/32/25114_2.png) [@tareaslenguaje2](https://community.auth0.com/u/tareaslenguaje2)\
**Post date:** [October 22, 2020, 6:58pm UTC](https://community.auth0.com/t/manage-user-information-on-callback-new-unauthorizederror-you-do-not-have-access-user-context/52012/1 "2020-10-22T18:58:01Z")

</div>

Hi, I am ussing a rule that returns this.

![image](https://global.discourse-cdn.com/auth0/original/3X/9/1/917101da736fedcbfdd441e4b1c9a74d0a9c625d.png)

But I want to use that user information and that context with the error.  
Example. I want to show “You do not have access _Name of that user or email_”  
I am using this rule on a React project and on NodeJs and Express project.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 23, 2020, 10:23am UTC](https://community.auth0.com/t/manage-user-information-on-callback-new-unauthorizederror-you-do-not-have-access-user-context/52012/2 "2020-10-23T10:23:31Z")

</div>

Hey there!

That’s the thing you wanna use, so basically user object properties in Rules:

> **[User Object Properties in Rules](https://auth0.com/docs/customize/rules/user-object-in-rules)**
>
> Describes the properties of the user object that stores information about the logged in user, returned by the identity provider.

---

<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:** [November 7, 2020, 10:23am UTC](https://community.auth0.com/t/manage-user-information-on-callback-new-unauthorizederror-you-do-not-have-access-user-context/52012/3 "2020-11-07T10:23:34Z")

</div>

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