Description

This function sets the minimum password strength for user accounts.

Examples 


https://hostname.example.com:2087/cpsess##########/json-api/setminimumpasswordstrengths?api.version=1&passwd=50
https://hostname.example.com:2087/cpsess##########/xml-api/setminimumpasswordstrengths?api.version=1&passwd=50
whmapi1 setminimumpasswordstrengths passwd=50

{
  "metadata": {
    "reason": "OK",
    "result": 1,
    "version": 1,
    "command": "setminimumpasswordstrengths"
  }  
}
<result>
    <metadata>
        <reason>OK</reason>
        <result>1</result>
        <version>1</version>
        <command>setminimumpasswordstrengths</command>
    </metadata>
</result>

Parameters

If you do not specify a value, the system will retain the existing setting.

ParameterTypeDescriptionPossible valuesExample
defaultinteger

The minimum password strength for all services.

A positive integer from 1 to 100 that measures the relative strength of the password. 50
bandmininteger

The minimum password strength for Bandmin.

We removed this parameter in cPanel & WHM version 58.

A positive integer from 1 to 100 that measures the relative strength of the password. 50
cpaddonsintegerThe minimum password strength for cpAddons.A positive integer from 1 to 100 that measures the relative strength of the password. 50
createacctintegerThe minimum password strength for new cPanel accounts.A positive integer from 1 to 100 that measures the relative strength of the password. 50
ftpinteger

The minimum password strength for FTP accounts.

We removed this parameter in cPanel & WHM version 54.

A positive integer from 1 to 100 that measures the relative strength of the password.

 

50
listintegerThe minimum password strength for mailing lists.A positive integer from 1 to 100 that measures the relative strength of the password. 50
mysqlintegerThe minimum password strength for MySQL® database users.A positive integer from 1 to 100 that measures the relative strength of the password. 50
passwdintegerThe minimum password strength for cPanel (system) accounts.A positive integer from 1 to 100 that measures the relative strength of the password. 50
popinteger

The minimum password strength for mail accounts.

We removed this parameter in cPanel & WHM version 54.

A positive integer from 1 to 100 that measures the relative strength of the password.

 

50
postgresintegerThe minimum password strength for PostgreSQL database users.A positive integer from 1 to 100 that measures the relative strength of the password. 50
sshkeyintegerThe minimum password strength for SSH keys.A positive integer from 1 to 100 that measures the relative strength of the password. 50
webdiskinteger

The minimum password strength for Web Disk (WebDAV) accounts.

We removed this parameter in cPanel & WHM version 54.

A positive integer from 1 to 100 that measures the relative strength of the password.

 

50
virtualinteger

The minimum password strength for mail, FTP, Web Disk, and WebDAV accounts.

We added this parameter in cPanel & WHM version 54.

A positive integer from 1 to 100 that measures the relative strength of the password.

50

Returns

This function only returns metadata.