Rules not working in machine to machine applications

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