# Adding role on first login using Actions

**URL:** <https://community.auth0.com/t/adding-role-on-first-login-using-actions/111699>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [July 20, 2023, 2:47pm UTC](https://community.auth0.com/t/adding-role-on-first-login-using-actions/111699 "2023-07-20T14:47:39Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [August 1, 2023, 10:58pm UTC](https://community.auth0.com/t/adding-role-on-first-login-using-actions/111699/7 "2023-08-01T22:58:07Z")

</div>

Hi @brett2,

Thanks for following up.

One strategy you could employ to conserve your allotted machine-to-machine tokens would be to cache these tokens for future use.

I recommend checking out [this related post](https://community.auth0.com/t/caching-m2m-access-token-in-actions/100734/4) on caching your M2M tokens in Actions.

If you have a moment, I would also encourage you to [create a feedback request](https://community.auth0.com/c/feedback/95) asking to support a method to assign roles to a user in Actions.

Thanks,  
Rueben

---

_[View the full topic](https://community.auth0.com/t/adding-role-on-first-login-using-actions/111699)._
