Skip to content

HubSpot: User provisioning schemas

12 HubSpot schemas with complete fields and constraints.

← User provisioning operations · All schemas

Create a user — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
emailstringRequired within parentThe email address of the user being provisioned. This is a required field and must be unique.
firstNamestringOptionalThe first name of the user.
lastNamestringOptionalThe last name of the user.
primaryTeamIdstringOptionalThe identifier for the primary team to which the user belongs.
roleIdstringOptionalThe identifier for the role assigned to the user.
seatNamesarrayOptionalAn array of seat names assigned to the user, representing different permissions or access levels.
seatNames[]stringEach item
secondaryTeamIdsarrayOptionalAn array of identifiers for secondary teams to which the user is associated.
secondaryTeamIds[]stringEach item
sendWelcomeEmailbooleanRequired within parentA boolean indicating whether a welcome email should be sent to the user upon provisioning. This is a required field.

Create a user — response body

FieldTypePresenceDescription and constraints
$objectRoot
emailstringRequired within parentThe email address of the user. This is a required field and must be unique.
firstNamestringOptionalThe first name of the user, represented as a string.
idstringRequired within parentThe unique identifier for the user, represented as a string.
lastNamestringOptionalThe last name of the user, represented as a string.
primaryTeamIdstringOptionalThe ID of the primary team to which the user belongs, represented as a string.
roleIdstringOptionalA string representing a single role ID assigned to the user.
roleIdsarrayRequired within parentAn array of strings representing the IDs of the roles assigned to the user. This is a required field.
roleIds[]stringEach item
seatNamesarrayOptionalAn array of strings representing the names of seats assigned to the user.
seatNames[]stringEach item
secondaryTeamIdsarrayOptionalAn array of strings representing the IDs of secondary teams to which the user is associated.
secondaryTeamIds[]stringEach item
sendWelcomeEmailbooleanOptionalA boolean indicating whether a welcome email should be sent to the user.
superAdminbooleanRequired within parentA boolean indicating whether the user has super admin privileges. This is a required field.

Modifies a user — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
firstNamestringOptionalThe first name of the user. It is a string value.
lastNamestringOptionalThe last name of the user. It is a string value.
primaryTeamIdstringOptionalThe identifier for the user's primary team. It is a string value.
roleIdstringOptionalThe identifier for the user's role. It is a string value.
seatNamesarrayOptionalAn array of seat names associated with the user. Each item in the array is a string.
seatNames[]stringEach item
secondaryTeamIdsarrayOptionalAn array of identifiers for the user's secondary teams. Each item in the array is a string.
secondaryTeamIds[]stringEach item

Retrieves the roles on an account — response body

FieldTypePresenceDescription and constraints
$objectRoot
resultsarrayRequired within parentAn array of PublicPermissionSet objects, each representing a specific permission set. This property is required.
results[]ModelEach itemExpand Retrieves the roles on an account — response body — results item

Referenced models: Retrieves the roles on an account — response body — results item

Retrieves the roles on an account — response body — results item

FieldTypePresenceDescription and constraints
$objectRoot
idstringRequired within parentThe unique identifier for the permission set. It is a string.
namestringRequired within parentThe name of the permission set. It is a string.
requiresBillingWritebooleanRequired within parentA boolean indicating whether the permission set requires billing write access.

Retrieves the seats on this account — response body

FieldTypePresenceDescription and constraints
$objectRoot
resultsarrayRequired within parentAn array of PublicSeat objects, each representing a seat with its associated properties.
results[]ModelEach itemExpand Retrieves the seats on this account — response body — results item

Referenced models: Retrieves the seats on this account — response body — results item

Retrieves the seats on this account — response body — results item

FieldTypePresenceDescription and constraints
$objectRoot
descriptionstringOptionalA string providing additional details about the seat.
namestringRequired within parentThe name of the seat. This is a required string property.
remainingSeatsJSONOptional
remainingSeats (anyOf 1)integerAlternativeAn integer indicating the number of seats that are still available.
Format: int32
remainingSeats (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Retrieves users — response body

FieldTypePresenceDescription and constraints
$objectRoot
pagingModelOptionalExpand Retrieves users — response body — paging
resultsarrayRequired within parentAn array of PublicUser objects representing the users returned in the current page.
results[]ModelEach itemExpand Create a user — response body

Referenced models: Create a user — response body, Retrieves users — response body — paging

Retrieves users — response body — paging

FieldTypePresenceDescription and constraints
$objectRootPaging information for forward-only pagination. Contains the next page reference when more results are available; omitted or empty on the last page.
nextModelOptionalExpand Retrieves users — response body — paging next

Referenced models: Retrieves users — response body — paging next

Retrieves users — response body — paging next

FieldTypePresenceDescription and constraints
$objectRootSpecifies the paging information needed to retrieve the next set of results in a paginated API response
afterstringRequired within parentA string token that indicates the position after the last item in the current page. It is used as a cursor to fetch the next set of results.
linkstringOptionalA string URL that provides a direct link to the next page of results.

See details about this account's teams — response body

FieldTypePresenceDescription and constraints
$objectRoot
resultsarrayRequired within parentAn array of PublicTeam objects, each representing a team with its associated properties.
results[]ModelEach itemExpand See details about this account's teams — response body — results item

Referenced models: See details about this account's teams — response body — results item

See details about this account's teams — response body — results item

FieldTypePresenceDescription and constraints
$objectRoot
idstringRequired within parentThe unique identifier for the team, represented as a string.
namestringRequired within parentThe name of the team, represented as a string.
secondaryUserIdsarrayRequired within parentAn array of strings representing the IDs of users who are secondary members of the team.
secondaryUserIds[]stringEach item
userIdsarrayRequired within parentAn array of strings representing the IDs of users who are primary members of the team.
userIds[]stringEach item

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.