Activate and Deactivate users via API

This feature is for developers.

I’d like to set/unset active/inactive status via API, as well as retrieve this data when querying users via API. Currently, this information is omitted and is limited to UI only.

Our use case is for automating employee account management for our company’s internal system.

Github, Confluence, and Atlassian all have more robust user management API features.

Thank you for looking into this.

A feature with which you could see the status invited/pending etc via the API would be very helpful.

Totally agree. At least being able to retrieve the user status (active/inactive) via API would be great. The ability to set can follow

Super important, please consider enabling this.

Is there a way to get the user status (active/inactive) via API or check the invite status via API yet?
dear @Jaycee_Lewis

A critical, super-important feature.

A super-critical, super-important feature.

This is such an important missing feature. There is an endpoint to delete a user but it’s very aggressive when you want to keep the user for historical purposes

I don’t understand why HubSpot is missing these properties in the API. In my case, I tried to list all the users of the account using the users API (https://api.hubspot.com/settings/v3/users). It is almost useless since it doesn’t have the isPending or isActive properties.

@hubspot, @Jaycee_Lewis @, is there any possibility of getting these properties added to the users API soon?

This would be a really helpful feature for our company. We have quite a lot of users and we need to be able to automate our onboarding and offboarding to save the IT team time. Doing this through the API would be really beneficial. I can imagine there are other larger companies in the same position.

This feature is crucial for us, as we disable user accounts and need the ability to automatically deactivate users in HubSpot. Without this capability, the user provisioning API falls short of meeting our requirements for effective account management. Integrating this feature would greatly enhance our workflow.

Hi, the owner API lets you retrieve active/inactive users. I don’t know if you can set/unset their status though. My company also automates internal employee systems and found that the owner API at least gets us halfway there now by showing the status of each employee.

There are some quirks like having to run two requests (active/inactive users):
https://community.hubspot.com/t5/APIs-Integrations/Owners-API-return-just-archived-false-owners/m-p/981847

Hi

There is a new API to get user information.

https://developers.hubspot.com/docs/guides/api/settings/users/user-details

or

https://developers.hubspot.com/docs/reference/api/settings/users/user-details

To retrieve a list of all available user properties, you can use the properties API by making a GET request to

crm/v3/properties/user

.

With this API you can read the property ‘hs_deactivated’, but this is a readonly property.

We need the ability to activate / deactivate a user as well. This is not solved yet.

Fully Agree we need to be able to control active / suspend users via API as its a basic ask as we look to reduce the number of super admins and move to automation platforms to manage our base user activation / suspensions across the company, shocked to find this wasn’t included when you can change teams / permissions via it.

+1 on this. To only be able to remove users through the API is not enough, please activate write to the hs_deactivated property!

This is a super important feature. Many other CRM platforms offer these API endpoints. Major drawback IMO. This update needs to be communicated as soon as possible!

+1. That feature would be really useful

+1 we also would like to see that happening (and - off topic - additionally being able to build workflows based on the user status)

At this point, since this has been asked for, for 3 years so far, its safe to assume that Hubspot has no intention to make this available via the API. I cannot guess the reason why, other than, papercut income. People are missed and their seat stays active another month. Every other major tool has this ability via API.