Activate and Deactivate users via API

BTeres

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.

17 Replies
jayfath
Member

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

yoshiakin
Member

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

CRosenberg0
Member

Super important, please consider enabling this.

DiepThienLong
Participant

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

 

SCarmel
Participant

A critical, super-important feature. 

kishan
Participant

A super-critical, super-important feature. 

GGam
Participant

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

ARegistration
Member

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? 

BCarter80
Member

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.

rashidshamsi
Member

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.

SLightcap
Member

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/...

baernhardj
Contributor

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.

 

SWJSmith
Member

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.

hannalofving
Contributor | Platinum Partner

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

ID_1
Member

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!

JChlostaGS
Member

+1. That feature would be really useful

MBU_RE
Member

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