How to tie auto renewable subscription with my app user Id

In server to server notifications, there is a notification type called "INITIAL_BUY". As I understand this notification will be sent to my server when a user subscribes to an auto-renewable subscription.

I have an issue with associating my app user id with this subscription.

From where I should handle that
You have to get the user id from your app, and transmit it to your backend served (with the receipt you got in the app when the user made the purchase), with the original_transaction_id, to store in your database. Then, when you receive a notification with a original_transaction_id, you can query your database to find out the user related to that notification.
How to tie auto renewable subscription with my app user Id
 
 
Q