Creating a new user (Pro)

This page describes the recommended onboarding workflow for adding new users to a DefectDojo instance. DefectDojo users can be used as both standard, human-operated accounts and as service accounts.

The admin who creates the account is responsible for delivering the initial credentials (username and password) to the new user.

  1. Create the user account in DefectDojo (Superuser only):

    • Navigate to πŸ‘€ Users β†’ βž• New User.
    • Enter the new user’s name and email address.
    • Set a temporary password.
    • Submit the form.
  2. Assign permissions as appropriate β€” Asset/Organization membership, Configuration Permissions, Global Role, or Superuser status. See Set a User’s permissions for details. A new user with no assignments will not be able to see any Assets or Findings.

  3. Send the credentials to the new user out-of-band (over email, your team’s chat tool, or however you normally share secrets). Include:

    • The DefectDojo instance URL.
    • The username (typically their email address).
    • The temporary password you just set.
    • A note that they should change the password and enable MFA (if your instance uses MFA) on first login.
  4. The new user logs in and rotates the credential. They can either:

    • Log in with the temporary password and then change it from their profile menu, or
    • Use the I forgot my password link on the login page to set a password directly without using the temporary one. The temporary password is still required for the initial account record to exist, but the user does not need to remember it if they use the password-reset flow.
  5. The new user configures MFA from their profile menu. We strongly recommend requiring MFA for all users on instances that aren’t behind SSO.

SSO Users

If your instance is configured with SSO, the workflow is different β€” users are typically created on first login from the Identity Provider, and you only need to grant them group membership or roles afterwards.

Recovering from a lost MFA token

If a user loses access to their MFA device, they can log in with one of the recovery codes issued when they enrolled. If those are gone too, an administrator with server access can clear MFA from the account with python manage.py remove_mfa --username <username>, after which the user logs in with their password and enrolls again β€” their permissions and history are preserved, so there is no need to create a replacement account.

See Multi-Factor Authentication for the full recovery options, and note that access to the Cloud Manager itself is a separate matter β€” see the connectivity troubleshooting guide.