> ## Documentation Index
> Fetch the complete documentation index at: https://auth0-docs-event-stream-action-templates.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# UsernamePolicy

```ts Example theme={null}
export interface UsernamePolicy {
  isActive?: boolean
  maxLength: number;
  minLength: number;
  allowedFormats?: {
    usernameInEmailFormat?: boolean;
    usernameInPhoneFormat?: boolean;
  };
}
```

## Properties

<ParamField body="allowedFormats?" type="object">
  #### usernameInEmailFormat?

  #### usernameInPhoneFormat?
</ParamField>

<ParamField body="isActive?" type="boolean" />

<ParamField body="maxLength" type="number" />

<ParamField body="minLength" type="number" />
