APIs & Integrations

JZhao
Participante

How can I get user's identity on webhook events?

I have setup a webhook between hubspot and my backend service and I am able to see these events.

 

One of the event looks like below json. The problem is that I can't see who triggered this event in hubspot. My users login to hubspot via GSuite and I'd like to see their google identity in the event.

 

There is `identity` field but I can't find any useful information.  There is also some cognito related fields which are empty. How can I put user's identity in the webhook events?

 

{"body":[{"eventId":2497677385,"subscriptionId":461776,"portalId":8013920,"appId":241150,"occurredAt":1613958641350,"subscriptionType":"company.propertyChange","attemptNumber":0,"objectId":5429313231,"propertyName":"name","propertyValue":"new updated company dbs ","changeSource":"CRM_UI"}],"method":"POST","principalId":"","stage":"joey","cognitoPoolClaims":{"sub":""},"enhancedAuthContext":{},"headers":{"accept":"*/*","Content-Type":"application/json","Host":"k4rt09av0m.execute-api.ap-southeast-2.amazonaws.com","User-Agent":"HubSpot Connect 2.0 (http://dev.hubspot.com/) - WebhooksExecutorDaemon-executor","X-Amzn-Trace-Id":"Root=1-60330df2-41b9a9950802e6fd138a25af","X-Forwarded-For":"54.174.56.131","X-Forwarded-Port":"443","X-Forwarded-Proto":"https","X-HubSpot-Signature":"5f50e81d82d23d018dfde6cb226cbd50368c27e46b5ab469c743a929f7cc3512","X-HubSpot-Signature-Version":"v1","X-HubSpot-Timeout-Millis":"10000","X-Trace":""},"query":{},"path":{},"identity":{"cognitoIdentityPoolId":"","accountId":"","cognitoIdentityId":"","caller":"","sourceIp":"54.174.56.131","principalOrgId":"","accessKey":"","cognitoAuthenticationType":"","cognitoAuthenticationProvider":"","userArn":"","userAgent":"HubSpot Connect 2.0 (http://dev.hubspot.com/) - WebhooksExecutorDaemon-executor","user":""},"stageVariables":{},"requestPath":"/v1/hubspot/webhook"}

0 Me gusta
2 Respuestas 2
dennisedson
Equipo de producto de HubSpot
Equipo de producto de HubSpot

How can I get user's identity on webhook events?

Hello @JZhao !

Looks like you are moving right along!

@Mike_Eastwood , do you have any ideas here?

0 Me gusta
JZhao
Participante

How can I get user's identity on webhook events?

Hi @dennisedson , is there an update on this issue? I can't find any way to get hubspot logged in user. Thanks.

0 Me gusta