18.11.2015 Views

Beginning Drupal 8

Todd Tomlinson - Beginning Drupal 8 (The Expert's Voice in Drupal) - 2015

Todd Tomlinson - Beginning Drupal 8 (The Expert's Voice in Drupal) - 2015

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3 ■ Creating and Managing Users<br />

The hardest part about creating user roles is deciding what roles you’ll need for your site. In general<br />

terms, it is easier to administer a site that has fewer roles than one that has lots of roles, as you must set the<br />

permissions for each individual role. However, fewer roles means less flexibility, so it is a balancing act, and<br />

often one that you have to adjust over time as you become more familiar with the types of users on your site.<br />

Unfortunately, there isn’t a formula you can use to determine how many roles you’ll need, but fortunately<br />

there isn’t a right or wrong answer as to how many you will need. For our example, we’ll create two generalpurpose<br />

roles:<br />

A role for users who are part of our organization and who will have responsibility<br />

for authoring, publishing, and managing content and menus on our site.<br />

A role for site visitors who are provided access to “non-public” content that is<br />

intended only for authenticated users (visitors who have been assigned a user ID<br />

and password). These users can view content and add comments to content, but<br />

cannot author, edit, or delete content.<br />

To create a new user role, assuming you are logged in with the administrator account, click the Manage<br />

link in the menu at the top of the page and then the People link in the submenu. On the People page, click<br />

the Roles tab to view the page where you view, create, edit, and delete roles. On this page there is a blank<br />

text box titled “Role name” , which is where you will enter the name of your new role. For demonstration<br />

purposes, enter “company user” as the name of the new role (see Figure 3-2).<br />

Figure 3-2. Working with roles in the People page<br />

Click the Save button. This results in the creation of the company user role, as shown in the list of<br />

defined user roles in Figure 3-3.<br />

Figure 3-3. The list of defined roles<br />

27

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!