Replaces the user lock policy.
Send every field. The request model uses numeric and boolean values, so
a missing field is stored as 0 or false. That is not the server
default. Omitting attempts disables account locking. Omitting
passwordExpiryDays disables password expiry. Omitting
baseLoginDelayMillis disables temporary login suspension. Omitting
clientLoginSuspensionEnabled turns client login suspension off
(false), which is the opposite of the server default (true).
To change one setting, read the policy first and send the full object
back with that field updated.
attempts must be from 0 through 100. secondsToUnlock and
passwordExpiryDays must be greater than or equal to 0. A value
outside those ranges is rejected.
Replaces: PUT /artifactory/api/security/userLockPolicy.
Map enabled: true and loginAttempts to attempts. Map
enabled: false to attempts: 0.
Security: Requires an admin user.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400Bad Request. attempts is outside 0-100, or secondsToUnlock or passwordExpiryDays is negative.
401Bad Credentials - Invalid credentials
403Permission Denied - Requires an admin user
