Skip to content

How to Exclude Service Accounts from 2FA

Some accounts sign in from a script or another system and cannot type a code. Excluding them keeps them working.

Configuration → General.

Pick them in Excluded Users.

The Excluded Users field

Press Save Changes.

On the demo, Fred Nerk was excluded:

  • He was never asked for a code.
  • His My Account menu had no Two-Factor Authentication item.
  • The WordPress Users screen showed Excluded in the 2FA column.

Excluding an account that already has 2FA on works the same way. Tillie Warren had her app set up, was added to the list, and signed in to the dashboard with her password alone. Her setup is kept, not deleted, so taking her off the list asks her for codes again.

Excluded in the 2FA column

An excluded user is never required to set up 2FA, even when their role is required.

An integration that only reads or writes data over the REST API does not need this. Give it an application password. See How to Connect Apps with Application Passwords.