Get User Info After oAuth Authorisation

I am investigating integrating Square with a client solution, which includes oAuth authorisation during account setup.

My question is; is it possible to retrieve information about the user who completed the oAuth authorisation after it is completed?
I’d like to use this information to prefill some fields in the registration process to speed up the registration process for new users.

The closest thing to “users” I could find was team members.

Thank you,

Fabian

Hi @fabilo, welcome to the forums!

You may be interested in using the Merchants API or Locations API to get more information on the accounts that have authorized your app. They don’t return names of account owners, but the responses do include general information about the business (e.g. business name, location addresses, etc.) that could be useful to you.

Thanks Josh, yep across all those and will be using them to populate the Business Name and also Location names. So very thankful for that. I was more enquiring for the personal info to help with their User setup during registration (i.e. name, email etc). It’s not a deal breaker, just a nice to have to try speed up the UX.

Thanks for your response :slight_smile:

Gotcha. Unfortunately we don’t currently have any APIs that expose that information, but I’ll go ahead and note this down as a feature request!

Hi @josh-square! Just wanted to check if this feature is available? I’m looking to implement something similar since it would help uniquely identify the user

At this time there isn’t any additional updates on this feature. Currently, the only types of team members that can complete an Authorization flow are the owner and administrators with full permissions. You can find the owners profile with the Team API but knowing what team members have administrator permissions and may have done the authorization isn’t currently available. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. :slightly_smiling_face: