> For the complete documentation index, see [llms.txt](https://docs.codemash.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codemash.io/sdks-and-cli/membership/settings/update-password-complexity.md).

# Update Password Complexity

Membership **settings** control how authentication and authorization behave for your project — allowed sign-in methods, registration rules, password complexity, and passkey options. This method updates the password complexity — only the fields you send are changed.

This method is on the **Hub** surface (`norbix.hub.membership`) — call it from admin tooling or IaC.

{% hint style="info" %}
These examples assume the SDK is installed and your credentials are set as environment variables — each client reads them automatically, so the constructors below take no arguments. See [Install a Norbix SDK](/sdks-and-cli/install.md).
{% endhint %}

{% tabs %}
{% tab title="JavaScript / TypeScript" %}

```ts
import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();

const result = await norbix.hub.membership.updatePasswordComplexity({
  minLength: 8,
  maxLength: 64,
  minNumbers: 1,
  maxNumbers: 8,
});
```

{% endtab %}

{% tab title=".NET" %}

```csharp
using Norbix.Sdk;
using Norbix.Sdk.Types.Hub;

using var client = new NorbixClient();

var result = await client.Membership.UpdatePasswordComplexityAsync(new UpdatePasswordComplexity
{
    MinLength = 8,
    MaxLength = 64,
    MinNumbers = 1,
    MaxNumbers = 8,
});
```

{% endtab %}

{% tab title="Python" %}

```python
from norbix_python import NorbixHub

norbix = NorbixHub()

result = norbix.membership.update_password_complexity(
    minLength=8,
    maxLength=64,
    minNumbers=1,
    maxNumbers=8,
)
```

{% endtab %}

{% tab title="Go" %}

```go
c, _ := norbix.New(norbix.Options{})
ctx := context.Background()

var result map[string]any
err := c.Hub.Membership.UpdatePasswordComplexity(ctx, map[string]any{
	"minLength": 8,
	"maxLength": 64,
	"minNumbers": 1,
	"maxNumbers": 8,
}, &result)
```

{% endtab %}

{% tab title="Dart / Flutter" %}

```dart
import 'package:norbix/norbix_hub.dart';

final hub = NorbixHub();

final result = await hub.membership.updatePasswordComplexity(body: {
  'minLength': 8,
  'maxLength': 64,
  'minNumbers': 1,
  'maxNumbers': 8,
});
```

{% endtab %}

{% tab title="Swift" %}

```swift
import NorbixSwift

let client = Norbix()

let result = try await client.hub.membership.updatePasswordComplexity([
    "minLength": 8,
    "maxLength": 64,
    "minNumbers": 1,
    "maxNumbers": 8,
])
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
import dev.norbix.sdk.hub.NorbixHub

val hub = NorbixHub()

val result = hub.membership.updatePasswordComplexity(mapOf(
    "minLength" to 8,
    "maxLength" to 64,
    "minNumbers" to 1,
    "maxNumbers" to 8,
))
```

{% endtab %}

{% tab title="CLI" %}

```sh
norbix hub membership password complexity update --minLength 8 --maxLength 64 --minNumbers 1 --maxNumbers 8
```

{% endtab %}
{% endtabs %}

## In the dashboard

Manage this visually in Norbix Cloud — see [Membership → Settings](/norbix-cloud/membership/settings.md).

## API reference

Full request and response for this endpoint: [Update Password Complexity](/api-reference/membership/settings/update-password-complexity.md).
