Knowledgebase

How to edit permissions and create and assign roles in Drupal

From the admin panel of your Drupal you can assign users to roles; you can create new roles and edit the permissions for the roles. As an administrator, this gives you control over what each user is allowed to do on your site.

Drupal comes with permissions preconfigured for three default roles: anonymous user, authenticated user, administrator. To edit the permissions of these roles log in to the admin panel, click on the People tab in the navigation bar and then on the Permissions sub-tab. On the page that opens you'll see a table with the permissions and the roles. Mark the respective checkboxes to include particular permissions in a role, and unmark them to exclude permissions. Then click on the Save permissions button below the table to save the changes.

To create a new role, on the same page with the permissions click on the Roles button that's above the top right corner of the table. On the next page type the name of the new role in the field that's provided and click on the Add role button. You can change its order in the table with the other roles. Drag and drop it in the desired position and click on the Save order button. The new role will automatically have the same permissions as the authenticated user role. You can go back to the Permissions page and edit the permissions for the new role.

Once the new role is created and configured you can assign users to it. On the homepage of your admin panel's People tab (People tab>List sub-tab) there's a table with all the registered users. Mark the checkbox in front of the name of the user (or users), then select the role from the update drop-down menu and click on the Update button.

For screenshots and some more details you can also check out the tutorial on managing permissions and user roles in Drupal.

Was this answer helpful?

 Print this Article

Also Read