# Rules not working in machine to machine applications

**URL:** <https://community.auth0.com/t/rules-not-working-in-machine-to-machine-applications/84168>\
**Category:** Get Help\
**Tags:** event, rules, access-token, machine-to-machine\
**Created:** [May 27, 2022, 11:21am UTC](https://community.auth0.com/t/rules-not-working-in-machine-to-machine-applications/84168 "2022-05-27T11:21:49Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![naman.chaturvedi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/naman.chaturvedi/32/37646_2.png) [@naman.chaturvedi](https://community.auth0.com/u/naman.chaturvedi)\
**Post date:** [May 29, 2022, 6:03pm UTC](https://community.auth0.com/t/rules-not-working-in-machine-to-machine-applications/84168/4 "2022-05-29T18:03:33Z")

</div>

Thanks @markd for your response,  
My use case is that I need to fetch the email Id of the user who created the access token, once I recieve that token in Mulesoft API. So I thought of including the email Id at the time of token creation which I can decode in Mulesoft. What is your suggestion to do this?

To get more details about this you can refer to this post that I created earlier:-  
[https://community.auth0.com/t/add-email-of-the-user-to-the-access-token-using-rules/84111?u=naman.chaturvedi](https://community.auth0.com/t/add-email-of-the-user-to-the-access-token-using-rules/84111)

---

_[View the full topic](https://community.auth0.com/t/rules-not-working-in-machine-to-machine-applications/84168)._
