Skip to main content

Managing two-step verification

Guide
Module
Administration

Every user sets up two-step verification for their own account under Profil › Güvenlik (Profile › Security) — the user's steps are on the Two-step verification page. This page is for the system administrator: mandatory use, reset, monitoring.

WhoDoes whatWhere
UserSets it up, turns it off, regenerates recovery codesProfil › Güvenlik (Profile › Security)
Administrator (users.edit)Resets another user's second stepYönetim › Kullanıcı ve Roller › Kullanıcılar (Administration › Users and Roles › Users) › İşlemler (Actions)
Administrator, Auditor (audit.view)Monitors the eventsYönetim › İzleme › Erişim Günlüğü (Administration › Monitoring › Access Log)
The team that operates the installationTurns on mandatory use; resets the last administrator's second step from the infrastructureInstallation settings, infrastructure command

An administrator cannot see a user's verification key or recovery codes, and cannot set up or turn on the second step on the user's behalf. The only thing an administrator can do is reset it.

Make it mandatory​

By default two-step verification is optional: a user who set it up is asked for a code at sign-in, a user who did not is not. Making it mandatory for certain roles or for everyone is an installation setting; it is not changed from a screen. The team that operates the installation writes the setting to the server's environment variables and restarts the application.

SettingValueMeaning
Auth__Mfa__RequiredRoles__0, Auth__Mfa__RequiredRoles__1, …Role name — one role per line; the index starts at 0Mandatory for a user who holds one of these roles. The role name is written exactly as on the Yönetim › Kullanıcı ve Roller › Roller (Administration › Users and Roles › Roles) screen.
*Mandatory for all users.
Auth__Mfa__EnforceFromUtcDate and time (UTC)Transition date. Until this moment users are warned; after it, a user who has not set it up cannot continue. If empty, mandatory use starts immediately.

Example — for the Yönetici (Administrator) and Genel Muhasebe Uzmanı (General Ledger Specialist) roles, from 4 January 2027 09:00 (Türkiye time):

Auth__Mfa__RequiredRoles__0=Yönetici
Auth__Mfa__RequiredRoles__1=Genel Muhasebe Uzmanı
Auth__Mfa__EnforceFromUtc=2027-01-04T06:00:00Z

While the role list is empty, nobody is forced.

What the user sees​

StateWhat is shown
Mandatory, not set up, transition date not reachedA notice at the top of every screen: "Rolünüz için iki adımlı doğrulama zorunlu. … tarihinden itibaren kurmadan uygulamaya devam edemezsiniz." (Two-step verification is mandatory for your role. From … you cannot continue using the application without setting it up.) and the Şimdi kur (Set up now) link. Work is not blocked.
Mandatory, not set up, transition date reachedAfter sign-in, the İki adımlı doğrulamayı kurun (Set up two-step verification) page instead of the application. No other screen opens until the setup is complete. The account is not locked; the user completes the setup themselves.
Mandatory, set upThe Rolünüz için zorunlu (Mandatory for your role) badge on the Profil › Güvenlik (Profile › Security) card; the Kapat (Turn Off) button is disabled.

Announce the transition date to users in advance: when the date arrives, a user who has not set it up lands on the setup page at their first action.

Before turning on mandatory use
  • Make sure at least two administrators have set up two-step verification. From the screen, an administrator's second step can be reset only by another administrator.
  • Users in the mandatory roles must have an authenticator app on their phone.
  • Remind users to keep their recovery codes.

Reset a user's second step​

A user who lost their phone and has no recovery code left cannot sign in. On the Kullanıcılar (Users) screen, the administrator selects İki Adımlı Doğrulamayı Sıfırla (Reset Two-Step Verification) from the row's İşlemler (Actions) menu — steps: Reset two-step verification.

  • The user's authenticator app link and recovery codes are deleted, and their open sessions are closed.
  • The password does not change. The user signs in with their password and sets up the second step again; if it is mandatory for their role and the transition date has been reached, the setup page opens directly at sign-in.
  • An administrator cannot reset their own second step; the item is not shown on their own row.
  • You cannot reset a user who holds permissions that you do not hold; an administrator who holds those permissions resets them (the message is under Troubleshooting).
  • If the request arrives by phone or e-mail, verify that the requester really is that user: a reset opens the way for someone who knows the password to link the second step to their own phone.

Events in the Access Log​

Selected with the Olay (Event) filter under Yönetim › İzleme › Erişim Günlüğü (Administration › Monitoring › Access Log). The code, the key and the recovery codes are not written to any field.

EventWhen it is writtenIn the Açıklama (Description) column
Parola doğru, ikinci adım istendi (Password correct, second step requested)The password was entered correctly, the code is awaited"Parola doğru, ikinci adım bekleniyor" (Password correct, awaiting second step)
İkinci adım hatalı (Second step failed)Wrong or already used code"Doğrulama kodu hatalı" (Verification code wrong), "Kurtarma kodu hatalı" (Recovery code wrong)
Giriş yapıldı (Signed in)The second step was passed with a verification code"İki adımlı doğrulama" (Two-step verification)
Kurtarma koduyla giriş (Sign-in with recovery code)The second step was passed with a recovery code"Oturum kurtarma koduyla açıldı" (Session opened with a recovery code)
İki adımlı doğrulama kuruldu (Two-step verification set up)The user completed the setup"İki adımlı doğrulama kuruldu"
İki adımlı doğrulama kapatıldı (Two-step verification turned off)The user turned it off"İki adımlı doğrulama kapatıldı"
Kurtarma kodları yenilendi (Recovery codes regenerated)The user generated new codes"Kurtarma kodları yenilendi"
İki adımlı doğrulamayı yönetici sıfırladı (Two-step verification reset by administrator)An administrator or the infrastructure reset it"İki adımlı doğrulamayı yönetici sıfırladı (…)" — the resetting administrator in parentheses; from the infrastructure: "İki adımlı doğrulama altyapıdan sıfırlandı (DbTool reset-mfa)" (Two-step verification reset from the infrastructure)

What to look for:

  • Consecutive İkinci adım hatalı (Second step failed): the password is known and codes were tried. Ask the user; if it was not them, have them change their password.
  • An unexpected Kurtarma koduyla giriş (Sign-in with recovery code) or İki adımlı doğrulama kapatıldı (Two-step verification turned off): verify with the user.
  • Wrong codes count toward the same counter as wrong passwords; when the threshold is exceeded, the Hesap kilitlendi (Account locked) event also appears.

If the last administrator cannot sign in​

If the only administrator of the installation lost their phone and recovery codes, there is no other administrator to perform the reset. In that case the team that operates the installation performs the reset on the server, with the infrastructure command:

DbTool reset-mfa --email <e-mail>
  • The command is not run from the application's screens; the team that operates the installation runs it on the server.
  • The account's second step and recovery codes are deleted, and its open sessions are closed. The password does not change.
  • The operation is written to the Access Log with the İki adımlı doğrulamayı yönetici sıfırladı (Two-step verification reset by administrator) event and the description "İki adımlı doğrulama altyapıdan sıfırlandı (DbTool reset-mfa)".
  • The administrator signs in with their password and sets up the second step again.

To avoid this path, keep at least two administrators in the installation.

Troubleshooting​

MessageCause and solution
"Bu hesapta iki adımlı doğrulama kurulu değil." (Two-step verification is not set up on this account.)There is nothing to reset; the user never set up the second step. The sign-in problem is about the password or a lock — Unlock an account, Reset a password.
"Kendi iki adımlı doğrulamanızı profilinizden yönetin — sıfırlamayı başka bir yönetici yapar." (Manage your own two-step verification from your profile — another administrator performs the reset.)You cannot reset your own account.
"Bu kullanıcı sizin taşımadığınız izinler taşıyor — hesabını yalnız o izinleri taşıyan bir yönetici yönetebilir." (This user holds permissions that you do not hold — only an administrator who holds those permissions can manage the account.)The user's permissions exceed yours. An administrator who holds those permissions performs the reset.
"Rolünüz için iki adımlı doğrulama zorunlu — kapatılamaz. Cihaz değiştirmek için yöneticinizden sıfırlamasını isteyin." (Two-step verification is mandatory for your role — it cannot be turned off. To change devices, ask your administrator to reset it.)A user in a mandatory role cannot turn it off; when changing phones, an administrator resets it.
"Devam etmeden önce iki adımlı doğrulamayı kurmanız gerekiyor — rolünüz için zorunlu. Profil › Güvenlik'ten bir doğrulama uygulaması bağlayın." (Before continuing you must set up two-step verification — it is mandatory for your role. Link an authenticator app from Profile › Security.)The transition date has been reached and the user has not set it up. The setup page opens by itself.
Codes are always "wrong"The phone's clock is wrong. Set the phone's time setting to automatic.