---
title: "Upsert organization user setting"
method: PATCH
path: "/api/v1/organizations/{organization_id}/settings/usermanagement"
tags: ["Organizations"]
---

# Upsert organization user setting

`PATCH /api/v1/organizations/{organization_id}/settings/usermanagement`

Upsert user management settings for an organization

## Path parameters

- `organization_id` string, required

## Request body

- OrganizationServiceUpsertUserManagementSettingsBody
  - `settings` OrganizationsOrganizationUserManagementSettings
    - `max_allowed_users` integer — Maximum number of users allowed in the organization. When nil (not set), there feature is not enabled. When explicitly set to zero, it also means no limit. When set to a positive integer, it enforces the maximum user limit.

## Response `200`

Returns the updated organization setting.

- OrganizationsUpsertUserManagementSettingsResponse
  - `settings` OrganizationsOrganizationUserManagementSettings
    - `max_allowed_users` integer — Maximum number of users allowed in the organization. When nil (not set), there feature is not enabled. When explicitly set to zero, it also means no limit. When set to a positive integer, it enforces the maximum user limit.

---

[API](https://skmtc.dev/scalekit/apis/scalekit-api-reference.md) · [All operations](https://skmtc.dev/scalekit/apis/scalekit-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scalekit/scalekit-api-reference/revisions/49af6b0b79c6/schema)
