Skip to main content
bmehta
Staff
Staff
March 18, 2026

Technical Tip: Resolving password requirement for new user creation on FortiGate

  • March 18, 2026
  • 0 replies
  • 474 views
Description This article describes the issue where the error 'password must be set object set operator error, -204 discard the setting Command fail. Return code 1' appears when configuring an administrator account without a password, and provides steps to resolve it.
Scope FortiGate.
Solution

When attempting to configure an administrator account on FortiOS without specifying a password, an error like the following may occur:

 

config system admin
    edit "yzz"
        set remote-auth enable
        set accprofile "super_admin"
        set vdom "root"
        set remote-group "clear"

    next
password must be set
object set operator error, -204 discard the setting
Command fail. Return code 1

 

This occurs because an active system password-policy enforces a local password requirement, even for remote-auth accounts where no local password is intended.

 

config system password-policy
    set status enable
end

 

To avoid encountering this error, the password policy can be disabled. However, it is generally not advisable to remove password policy enforcement from the configuration, as it weakens overall security.

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!