User Provisioning Users Endpoint Missing Properties

Hello HubSpot Community!

I tried using the /settings/v3/users endpoint yesterday (Accounts Dashboard | HubSpot) and it’s only returning me the id and email properties. I was expecting a roleId, primaryTeamId, and secondaryTeamIds like in the response example. The only parameters are limit and after so it doesn’t look like you can specify additional properties to be pulled. Am I doing something wrong?

I’m using the @hubspot/api-client package with the following request:

const request = { method: ‘GET’, path: after ? `/settings/v3/users?limit=${limit}&after=${after}` : `/settings/v3/users?limit=${limit}` };

Hi, what u want to do?

Hey SYaeger,

Do you know how I can get the user’s roleId, primaryTeamId, and secondaryTeamIds like in the response example in the API documentation?

I found it. roleId, primaryTeamId, and secondaryTeamIds values only appear if there is actually data to return. I was expecting a null value. All my users weren’t assigned to teams and had no roles.