# Add attributes to the token

**URL:** <https://community.auth0.com/t/add-attributes-to-the-token/125885>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [January 28, 2024, 2:15pm UTC](https://community.auth0.com/t/add-attributes-to-the-token/125885 "2024-01-28T14:15:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [January 30, 2024, 12:39am UTC](https://community.auth0.com/t/add-attributes-to-the-token/125885/3 "2024-01-30T00:39:27Z")

</div>

Hey @eden.amram !

> [@eden.amram](#):
>
> But, i need to add some attributes to this token like permission that exists only in my DB.  
> I don’t understand if i can do this.

You could always add this data as user/app metadata and add as a custom claim in tokens by way of an Action.

> [@eden.amram](#):
>
> I found an option to add some action, but how can i send the permission if the permission exists in my DB?

It’s also possible to hit your own API from within an Action and carry out necessary logic to add the permissions that way.

> [@How do I call my API from an Action?](https://community.auth0.com/t/how-do-i-call-my-api-from-an-action/69041):
>
> Hey, So I’m in the process of trying to add a user to my database using an API call from a “Post User Registration” Action. I have followed this blog post here: and seem to have everything looking good. On top of that when I run the test it says the action was successful. The only problem is that my API is not being called at all even though I have triple checked that the URL is correct. Here is the code I’m working with: import axios from "axios"; exports.onExecutePostUserRegistration = …

---

_[View the full topic](https://community.auth0.com/t/add-attributes-to-the-token/125885)._
