Set a User's permissions | DefectDojo Documentation

Set a User's permissions (Pro)

DefectDojo Pro feature. The Members / Groups / Global Roles RBAC system described on this page is part of DefectDojo Pro. Open-source DefectDojo uses the Authorized Users model — see that page for open-source access control, and the 3.0 upgrade notes if you’re moving between editions.

Introduction to Permission Types

Individual users have four different kinds of permission that they can be assigned:

You can also create Groups if you want to assign Product Membership, Configuration Permissions or Global Roles to a group of users at the same time. If you have a large number of users in DefectDojo, such as a dedicated testing team for a particular Product, Groups may be a more helpful feature.

Superusers & Global Roles

Part of your Role-Based Access Control (RBAC) configuration may require you to create additional Superusers, or users with Global Roles.

By default, the first account created on a new DefectDojo instance will have Superuser permissions. That user will be able to edit permissions for all subsequent DefectDojo users. Only an existing Superuser can add another superuser, or add a Global Role to a user.

Add Superuser or Global Role status to an existing user

  1. Navigate to the 👤 Users > Users page on the sidebar. You will see a list of all registered accounts on DefectDojo, along with each account’s Active status, Global Roles, and other relevant User data.

  2. Click the name of the account that you wish to give Superuser privileges to. This will bring you to their User Page.

  3. From the Default Information section of their User Page, open the ☰ menu and select Edit.

  4. From the Edit User page:

    For Superuser Status, check off the ☑️ Superuser Status box, located in the user’s Default Information.

    To assign a Global Role, select one from the dropdown Global Role menu at the bottom of the page.

  5. Click Submit to accept these changes.

Product & Product Type Membership

By default, any new account created on DefectDojo will not have permission to view any Product Level Data. They will need to be assigned membership to each Product they want to view and interact with.

Users can have two kinds of membership simultaneously at the Product level:

If a user has already been added as a Product Type member, and does not require an additional level of permissions on a specific Product, there is no need to add them as a Product Member.

Adding a new Member

  1. Navigate to the Product or Product Type which you want to assign a user to. You can select the Product from the list under Products > All Products.

  2. Locate the Members heading, click the menu, and select + Add Users.

  3. This will take you to a page where you can Register new Members. Select a User from the dropdown Users menu.

  4. Select the Role that you want that User to have on this Product or Product Type: API Importer, Reader, Writer, Maintainer or Owner.

Users cannot be assigned as Members on a Product or Product Type without also having a Role. If you’re not sure which Role you want a new user to have, Reader is a good ‘default’ option. This will keep your Product state secure until you make your final decision about their Role.

Edit Or Delete a Member

Members can have their Role changed within a Product or Product Type.

Within the Product or Product Type page, navigate to the Members heading and click the button next to the User who you want to Edit or Delete.

📝 Edit will take you to the Edit Member screen, where you can change this user’s Role (from API Importer, Reader, Writer, Maintainer or Owner to a different choice).

🗑️ Delete removes a User’s Membership altogether. It will not remove any contributions or changes the User has made to the Product or Product Type.

Add an additional Product role to a user with a related Product Type role

If a User has a Product Type-level Role, they will also be assigned Membership with this Role to every underlying Product within the category. However, if you want this User to have a special Role on a specific Product within that Product Type, you can give them an additional Role on the Product level.

  1. From the Product page, navigate to the Members heading, click the menu, and select + Add Users (as if you were adding a new User to the Product).
  2. Select the User’s name from the drop-down menu, and select the Product Role you want that User to be assigned.

A Product Role will supersede a user’s standard Product Type Role or Global Role. For example, if a User has a Product Type Role of Reader, but is also assigned as an Owner on a Product nested under that Product Type, they will have additional Owner permissions added for that Product only.

However, this does not work in reverse. If a User has a Product Type Role or Global Role of Owner, assigning them a Reader role on a particular Product will not take away their Owner permissions. Roles cannot take away permissions granted to a User by other Roles, they can only add additional permissions.

Configuration Permissions

Many configuration dialogues and API endpoints can be enabled for users or groups of users, regardless of their superuser status. These Configuration Permissions allow regular users to access and contribute to parts of DefectDojo outside of their standard Product or Product Role assignment.

Configuration Permissions are not related to a specific Product or Product Type - users can have configuration permissions assigned without the need for other statuses or Product / Product Type Membership.

List of Configuration Permissions

Add Configuration Permissions to a User

Only Superusers can add Configuration Permissions to a User.

  1. Click the name of the account that you wish to edit.

  2. Navigate to the Configuration Permissions List. This is located on the right-hand side of the User Page.

  3. Select the User Configuration Permissions you wish to add.

    For a detailed breakdown of User Configuration Permissions, please refer to our Permission Chart.