Two factor admin missing

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2): 17.0.2
Operating system and version (eg, Ubuntu 17.04): Ubuntu 18.04.3 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.29
PHP version (eg, 7.1): 7.2

The issue you are facing:
After upgrading to NC17 the new 2FA Admin section is not present in my security settings. According to the release screen shots, for an Admin user in the Security section of Settings, there should be a section called “Two-Factor Admin” in between “Password Policy” and “OAuth 2.0 clients”. I don’t have that section. It’s just not there at all. As a result, I can’t generate one time use codes for people locked out of their account.

I have also not been able to use the “Two-Factor Admin Support” add-on app b/c it has been broken for some time for anyone using a PostgreSQL database. As a result, when one of my users gets locked out, I have to delete their account, clean up their LDAP remnants, re-add them and then help them login and setup their 2FA again. Not optimal! I had been really excited to implement NC17 b/c of the new 2FA admin feature but here we are!

Let me know if anyone really wants the logs b/c they seemed huge and the support site choked when I tried to paste the first one in.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Login to the server as an Admin
  2. Go to Settings, Security

The output of your Nextcloud log in Admin > Logging:


The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):


The output of your Apache/nginx/system log in /var/log/____:


Anyone? Anyone? Bueller? Bueller?