Question

oAuth user profile

  • 19 January 2023
  • 8 replies
  • 310 views

Badge

Hello all! Since we are trying to integrate with the API that Gong is providing, we are interested in being able to identify the user that got oAuth-ed. Is the a way to achieve this? I am looking through the docs for some time now, and might be that I am missing it some where.

In other words said, we want to get the user data for the oAuth-ed user.


8 replies

Userlevel 6
Badge +1

Hi there @UserUnleash — I am checking with the team internally and will get back to you as soon as possible. Thanks for your patience! 

Userlevel 1

Hi @UserUnleash. Thank you for reaching out through the community! 

Gong has an API that allows you to retrieve user information. Here is an extensive article on how OAuth works for Gong Technology Partners along with detailed documentation on our Users API. 

Badge

Hello @BridgetFinegan,

Thanks for the reply! However this does not seam to answer the question I opened.

The provided Users API can be used to fetch user data once the ID of the user is available, however when we oAuth the user, we do not receive an ID, which would prevent us from the API execution.

Could it be that I’m missing something?

Badge

Hello @BridgetFinegan,

I am wondering if there is any information, regarding the question I’ve made?

Userlevel 5
Badge +3

@BridgetFinegan it sounds like you are accessing the API using an oAuth method versus an access key and secret, as outlined in this help center article. Is that correct?

If so are you asking to identify the user that was used to oAuth? as in the following section of the article?

“Step 2.1: Use the authorization code flow

As per the OAuth standard, you need to establish a UI component that will lead the user (who must be a technical administrator in Gong) to the Authorization page in Gong at the following URL.”

 

Can you elaborate on why you need the ID, as in the sentence “however when we oAuth the user, we do not receive an ID, which would prevent us from the API execution.”?

 

(Since you using the API you may be interested in next weeks data meetup on extracting data from Gong with a focus on Snowflake)

Badge

Hello @Andrew O'Driscoll, you did not mention me for the reply but I suppose it was meant for me.
 

@BridgetFinegan it sounds like you are accessing the API using an oAuth method versus an access key and secret, as outlined in this help center article. Is that correct?

 

Yes, correct I am trying to access the API using the oAuth method.

 

If so are you asking to identify the user that was used to oAuth?

 

The goal is to be able to know what is the user that is going through the flow, and present him back his own personal information as an indication to what account is being oAuth-ed.

 

Can you elaborate on why you need the ID, as in the sentence “however when we oAuth the user, we do not receive an ID, which would prevent us from the API execution.”?

 

In order to be able to know the owner of an access token that is received as a result of a successful oAuth flow.

Userlevel 1

Hi @UserUnleash. I apologize if I responded through a lens than that of your originally intended question.

It sounds like you are looking for the information provided in the API Section of your developer Gong instance. 

(Log into Gong instance -> Settings -> Ecosystem -> API) 

Badge

@Molly Kipnis @Andrew O'Driscoll 

Did this get solved? 

There’s still no way to link the access token provided by OAuth to user or company data.

Reply