Email address for M2M connection

Hello. I have developed a NodeJS application that is heavily dependent on knowing information about the logged-in user. For session authentication, I am using to retreive the logged-in user’s email. However, for M2M authentication, this value is undefined.

Is there some other way I can get the M2M’s logged-in email address to use in the application?

Hello @mikeburke106 ,

Welcome to the Community!

When using M2M, client credentials grant is used which authenticates the client (application). There is no user involved in this flow.

This question is very similar to a post in the Community and I am attaching for your reference.

Hope this info helps and do let me know if you have other questions.