--- id: v2024-basic-auth-config title: BasicAuthConfig pagination_label: BasicAuthConfig sidebar_label: BasicAuthConfig sidebar_class_name: powershellsdk keywords: ['powershell', 'PowerShell', 'sdk', 'BasicAuthConfig', 'V2024BasicAuthConfig'] slug: /tools/sdk/powershell/v2024/models/basic-auth-config tags: ['SDK', 'Software Development Kit', 'BasicAuthConfig', 'V2024BasicAuthConfig'] --- # BasicAuthConfig ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **UserName** | **String** | The username to authenticate. | [optional] **Password** | **String** | The password to authenticate. On response, this field is set to null as to not return secrets. | [optional] ## Examples - Prepare the resource ```powershell $BasicAuthConfig = Initialize-V2024BasicAuthConfig -UserName user@example.com ` -Password null ``` - Convert the resource to JSON ```powershell $BasicAuthConfig | ConvertTo-JSON ``` [[Back to top]](#)