7.3. Creating a Role for Drupal 8, Drupal 9

Last updated January 7, 2022


Create a Vendor role to allow some - but not all - users to perform specific tasks.


Creating a Role

  1. In the Manage administrative menu, navigate to People > Roles (admin/people/roles).
  2. You will find default roles Anonymous user, Authenticated user, and Administrator already present.

    Roles page

  3. Click Add Role to add a custom role.
  4. Type Vendor in the Role name field. Click Save.

    adding vendor as a role

  5. You will see the message "Role Vendor has been added." displayed at the top of the page.

    vendor role added success message

Additional resources

Drupal.org community documentation page "User Roles"


Adapted and edited by Jack Probst, Boris Doesborg, and Joe Shindelar from "User Roles", copyright 2000-2022 by the individual contributors to the Drupal Community Documentation