# API Integration endpoints

**URL:** <https://community.hubspot.com/t/api-integration-endpoints/91889>\
**Category:** CRM\
**Tags:** integrations\
**Created:** [October 16, 2023, 2:27pm UTC](https://community.hubspot.com/t/api-integration-endpoints/91889 "2023-10-16T14:27:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MAbdulnabi](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@MAbdulnabi](https://community.hubspot.com/u/MAbdulnabi)\
**Post date:** [October 16, 2023, 2:27pm UTC](https://community.hubspot.com/t/api-integration-endpoints/91889/1 "2023-10-16T14:27:39Z")

</div>

Hi,

I’m recntly used to work with the API’s offered by HubSpot which is highlighted in the below link:

[Settings API | User Provisioning (hubspot.com)](https://developers.hubspot.com/docs/api/settings/user-provisioning)

When it come’s to the user’s access modification, I was able to change user’s access from one to another, but when it comes to changing team membership, the only action can be done is just assigning the users to other team using “Modify User” Endpoint without removing the existing teams that is assigned to the user.

Is there a way to remove the previous teams assigned to the user?

Thanks,

Mohammed

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [October 17, 2023, 9:01am UTC](https://community.hubspot.com/t/api-integration-endpoints/91889/2 "2023-10-17T09:01:26Z")

</div>

Hi @MAbdulnabi, I hope that you are well.  
Thank you for asking our Community!  
I found for you the solution from @dennisedson on this similar post “[Remove a user from a primary or secondary team via API](https://community.hubspot.com/t5/APIs-Integrations/Remove-a-user-from-a-primary-or-secondary-team-via-API/td-p/587110)”. It seems that for the moment there is no API for this use case.  
I therefore recommend you to [post this idea on our Ideas Forum here](https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas).  
And I encourage you to share and upvote for the idea ( this way it will have more chances to be implemented in the future), and follow the thread to receive the update status.  
Hey @Teun, @DanielJeal and @ChrisoKlepke you may have a workaround or other ideas on how to achieve this to help @MAbdulnabi, please?

**If anybody else has anything to add and/or share, please feel free to join in the conversation** 🙂  
Thanks and have a lovely day!  
Best,  
Bérangère
