# Can I change the type of users of organization using API?

**URL:** <https://community.auth0.com/t/can-i-change-the-type-of-users-of-organization-using-api/119315>\
**Category:** Get Help\
**Tags:** organizations-management-api, management-api\
**Created:** [October 24, 2023, 11:46pm UTC](https://community.auth0.com/t/can-i-change-the-type-of-users-of-organization-using-api/119315 "2023-10-24T23:46:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Boss0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/boss0/32/48842_2.png) [@Boss0](https://community.auth0.com/u/Boss0)\
**Post date:** [October 24, 2023, 11:46pm UTC](https://community.auth0.com/t/can-i-change-the-type-of-users-of-organization-using-api/119315/1 "2023-10-24T23:46:59Z")

</div>

In general, we are using the Dashboard to change the type of users on the organization tab of the application.  
But I want to implement this operation with API script so that makes it automated.  
Is it possible?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 25, 2023, 12:35am UTC](https://community.auth0.com/t/can-i-change-the-type-of-users-of-organization-using-api/119315/3 "2023-10-25T00:35:28Z")

</div>

Hey @Boss0 !

> [@Boss0](#):
>
> But I want to implement this operation with API script so that makes it automated.  
> Is it possible?

You should be able to achieve this using the `organization_usage` and `organization_require_behavior` parameters of the `/api/v2/clients/{id}` [endpoint](https://auth0.com/docs/api/management/v2/clients/patch-clients-by-id). The values for `organization_usage` for each Org user “type” should be as follows:

- “Individuals” = `deny`

- “Business Users” = `require`

- “Both” = `allow`

For `organization_require_behavior` the values should be as follows:

- “Individuals” = `no_prompt`

- “Business Users”

- “Both”

---

<div class="post-metadata">

**Author:** ![Boss0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/boss0/32/48842_2.png) [@Boss0](https://community.auth0.com/u/Boss0)\
**Post date:** [October 25, 2023, 12:43am UTC](https://community.auth0.com/t/can-i-change-the-type-of-users-of-organization-using-api/119315/4 "2023-10-25T00:43:48Z")

</div>

Hi @tyf thanks for reply.  
If so, can I automate to manage organizations in one tenant with API?  
I mean, I am using one tenant per org per env now.  
But I want to have a single tenant that supports several organizations and the orgs can be programmatically managed.  
So I want full automation through Auth0 within the click of one button.  
Hope your inputs/suggestions soon. Thanks

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 26, 2023, 10:08pm UTC](https://community.auth0.com/t/can-i-change-the-type-of-users-of-organization-using-api/119315/5 "2023-10-26T22:08:41Z")

</div>

No problem, happy to help!

> [@Boss0](#):
>
> If so, can I automate to manage organizations in one tenant with API?  
> I mean, I am using one tenant per org per env now.

If you have multiple tenants, you will need to use the corresponding Management API for each.

---

<div class="post-metadata">

**Author:** ![Boss0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/boss0/32/48842_2.png) [@Boss0](https://community.auth0.com/u/Boss0)\
**Post date:** [October 26, 2023, 10:15pm UTC](https://community.auth0.com/t/can-i-change-the-type-of-users-of-organization-using-api/119315/6 "2023-10-26T22:15:41Z")

</div>

okay. but I’ll merge those multiple tenants into one. and want to manage the several orgs on one tenant.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 26, 2023, 10:23pm UTC](https://community.auth0.com/t/can-i-change-the-type-of-users-of-organization-using-api/119315/7 "2023-10-26T22:23:02Z")

</div>

I don’t see why not then if you have multiple orgs under 1 tenant - In terms of managing your tenant and organizations programmatically, you might want to take a look at our Management API SDK libraries [here](https://auth0.com/docs/libraries#mgmt) or the [Auth0 Terraform provider](https://registry.terraform.io/providers/auth0/auth0/latest/docs).

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 22, 2023, 12:52am UTC](https://community.auth0.com/t/can-i-change-the-type-of-users-of-organization-using-api/119315/8 "2023-11-22T00:52:52Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
