How to know which user account is used when updating data through the API

We have created a HubSpot app to integrate into our web application, but in the Monitoring tab of the HS app, it’s only showing the account number, but not of the user being used to login to that account. For clarity, user profile number (or id?) and account number is different in this context.

Even taking out the whole app integration thing - how do you usually track which user account did an update through the API? Thank you!

Hey, @zbads :waving_hand: You make a great point. For OAuth, there’s an endpoint for this use case — OAuth managing tokens. Which returns the email address for the user that the token was created for.

For Private Apps, there is not an equivalent endpoint. We can use the endpoint — View private app access token information, to see the email address of the User who created the Private App and token, but not for specific calls and the User who’s making them.

Based on my understanding, this is because a Private App is created by a single user, but not limited to use by any one user in the portal. This is one main difference between the simplicity of Private Apps for single portal use vs the one-time cost (development, time, etc.) to stand up a Public App and use OAuth. Which would give you the granular detail about Users that you are after.

Best,

Jaycee

Hello Jaycee, thanks for the details above. :slightly_smiling_face:

We’re using OAuth tokens, and I understand that we can retrieve data (including the user) through the generated token/s. But is there any way that we can see those user details in the Monitoring log in the app itself (or in any other screen in HubSpot)? We’re planning of just using it as an audit trail, if possible.

Thanks & regards,

Ariel