# APIs for User Management

**URL:** <https://community.hubspot.com/t/apis-for-user-management/36896>\
**Category:** APIs & Integrations\
**Tags:** developer-tools, timeline-and-extensions-apis\
**Created:** [May 7, 2021, 3:21am UTC](https://community.hubspot.com/t/apis-for-user-management/36896 "2021-05-07T03:21:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashutosh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ashutosh/32/21752_2.png) [@Ashutosh](https://community.hubspot.com/u/Ashutosh)\
**Post date:** [May 7, 2021, 3:21am UTC](https://community.hubspot.com/t/apis-for-user-management/36896/1 "2021-05-07T03:21:52Z")

</div>

I am creating providers using Terraform in Go language. Please tell if there are APIs available for user management, i.e., I want to create, update, delete, activate, and deactivate user using HubSpot APIs, how can I do that?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [May 7, 2021, 3:53pm UTC](https://community.hubspot.com/t/apis-for-user-management/36896/2 "2021-05-07T15:53:05Z")

</div>

Hi @Ashutosh

Have you seen [this endpoint](https://developers.hubspot.com/docs/api/settings/user-provisioning)?

---

<div class="post-metadata">

**Author:** ![Ashutosh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ashutosh/32/21752_2.png) [@Ashutosh](https://community.hubspot.com/u/Ashutosh)\
**Post date:** [May 8, 2021, 12:11pm UTC](https://community.hubspot.com/t/apis-for-user-management/36896/3 "2021-05-08T12:11:17Z")

</div>

I have gone through this [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/settings/user-provisioning), but it only shows me apis for read user. Can you please specify that does it provides apis for create, update, delete, activate, and deactivate users?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [May 10, 2021, 2:42pm UTC](https://community.hubspot.com/t/apis-for-user-management/36896/4 "2021-05-10T14:42:03Z")

</div>

@Ashutosh

If you look at the enpoints tab of that page, you will see a variety of options. See screengrab

 ![Settings_API___User_Provisioning.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/d/0deb23c15bb511e1716e03244c987f02f7526326.png)

---

<div class="post-metadata">

**Author:** ![Ashutosh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ashutosh/32/21752_2.png) [@Ashutosh](https://community.hubspot.com/u/Ashutosh)\
**Post date:** [May 11, 2021, 4:45am UTC](https://community.hubspot.com/t/apis-for-user-management/36896/5 "2021-05-11T04:45:37Z")

</div>

Thank you for the response, can you please clarify more that are there HubSpot APIs available for activating, and deactivating a user.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [May 11, 2021, 1:37pm UTC](https://community.hubspot.com/t/apis-for-user-management/36896/6 "2021-05-11T13:37:17Z")

</div>

@Ashutosh , can you define activating and deactivating?

You can create and delete, but there is no activating, but maybe we are thinking about this differently

---

<div class="post-metadata">

**Author:** ![Ashutosh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ashutosh/32/21752_2.png) [@Ashutosh](https://community.hubspot.com/u/Ashutosh)\
**Post date:** [May 13, 2021, 2:08pm UTC](https://community.hubspot.com/t/apis-for-user-management/36896/7 "2021-05-13T14:08:31Z")

</div>

Deactivating a user is functionally identical to blocking a user, and activating a user changes the user’s state to active. So, for activating, there are no apis, thats fine. Please let me know apis availablity for deactivating users. I am having a problem in generating OAuth 2.0 authentication token using this reference [Working with OAuth | OAuth Quickstart Guide - HubSpot docs](https://developers.hubspot.com/docs/api/oauth-quickstart-guide) . You can see what preview I am getting:

 ![Ashutosh_0-1620914899549.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/0/c032dd604ee48cd20240c7600d0152bbb0c49df9.png)
