The User Provisioning endpoints allow you to provision and deprovision HubSpot users programatically.
firstName
and lastName
properties through this API.
To retrieve and update other user information, such as their job title and working hours, use the users API instead.
userId
path parameter, you can either use the user’s ID or the user’s email. Specifying based on the user’s ID is the default behavior but if you want to use the user’s email, you can use the query parameter idProperty
to set that.
The following GET
request is fetching a user with the email _myUser@gmail.com:_
https://api.hubspot.com/settings/v3/users/myUser@gmail.com?idProperty=EMAIL
You can set the idProperty
query parameter in any endpoint that takes in userId
as a path parameter.
billing-write
scope.
The following is an example of a role definition for a user: