Drupal/C3/People-Management/English

From Script | Spoken-Tutorial
Revision as of 15:36, 15 July 2016 by Priyacst (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Title: Drupal People Management

Keywords: Drupal, Video tutorial, People Management, super user, adding role


Visual Cue
Narration
Slide 1:

Drupal People Management

Welcome to the Spoken tutorial on Drupal People Management.
Slide 2:

Learning Objectives


In this tutorial, we will learn about
  • People Management and
  • Setting up specific task-based roles.


Slide 3:

System requirement


To record this tutorial, I am using


  • Ubuntu Linux Operating System
  • Drupal 8 and
  • Firefox Web browser

You can use any web browser as per your choice.

Time Narration
00:10 Lets learn about People management.
00:15 I have switched back to the ZIRCON theme and we will keep this theme for the rest of this tutorial.
00:20 People management is really very important.


It’s actually very complicated to get right.


We have to do it just once but correctly.

00:32 Let’s click on People.


People in Drupal are given roles that have permissions.

00:45 Through the permission structure, Drupal allows us to control what people can see and what people can do.
00:53 Now it’s important to remember a few things here.
00:57 Remember that you are user no.1 - that is the super user.
01:00 Nobody can change your permissions.
01:05 There is a user below that’s called ADMINISTRATOR.
01:09 Administrators are generally given permission to manage the entire site.


But still they are not as high as User No.1.

01:19 Authenticated Users are logged in people who have certain rights.


Lastly, Anonymous Users are visitors who are not logged in.

01:28 Usually, Anonymous Users can just view the content that’s not protected and do nothing else.
01:33 Another important thing to remember is, to set up roles that are specific to the tasks on the site.
01:42 Suppose we have a summer intern who is only allowed to update Events.


Not Articles or Pages or User Groups.

01:51 This summer intern needs to have his/her own role, so that you can manage the permissions.
01:59 We will set that up shortly..
02:02 For now, let’s click on Permissions tab.


Scroll down slowly and see what’s available.

02:10 The list gets longer and longer and longer -
  • for every Content type we add,
  • for every Module we add and
  • for every View we build.


02:45 People management in Drupal is about what people can do.
02:50 Next, we will add a new role, give it some permissions and test it out.
Time Narration
00:05 Let’s click Roles.
00:10 Let’s add a new role here called Summer Intern.
00:18 Drupal will give it a machine name, as always.


Click Save.

00:23 Now we have a new role Summer Intern, that doesn’t have any permissions yet.
00:27 I like to move my roles in the order of ability or permissions.


It just helps me to see the roles in a logical order - who has what permissions.

00:40 Let’s click Save order.


Now we need to give our new role some permissions.

00:47 Click on Permissions tab.


We can see that this page is the overview of everybody’s permissions.

00:52 Let’s go back for a second by clicking on Roles tab.


Click on Summer Intern and select Edit permissions.

01:00 Now we just see the permissions for the Summer Intern and it’s a little bit easier.
01:05 Scroll down and locate the Content type called Events - it’s about half way down for me.
01:15 Here, let’s say the Summer Intern can
  • Create new events
  • Delete only their own events and
  • Edit only their own events.


01:26 What we’re not going to allow the Summer Intern to do is -
  • Delete other people’s content,
  • Delete revisions,
  • Edit any other events that they’ve not created.


01:37 We are also not going to allow them to revert back to an old version.

We will give our editors those particular powers.

01:47 This is a pretty limited role.


Now scroll all the way down to the bottom and click Save permissions.

01:55 And notice again -
  • they can’t edit views,
  • they edit books,
  • they can’t even post comments without somebody approving it.


02:05 So, this is a very limited role.


The third step is to add a person.


We have set up the roles, added the permissions.

02:15 Now, let’s add a user and here we can give a fake email address.


It just has to be in a valid format.


I’ll just say intern@email.com because we’re not going to actually email them.

02:28 In Username, we’ll type Sam and we’ll use sam as the password also.


It is a very insecure password. But it is fine for now, as this is a local machine.

02:37 We need to change the Status to Active.


And he should have the Summer Intern role.


We can add a picture if we want to.

02:46 For now, we will turn off the Personal contact form. Because summer interns don’t need to be contacted.
02:50 Lastly, click Create new account.
02:55 The success messages tells us that
  • Our account is created for Sam and
  • No email has been sent.


03:00 So, now on our user list, we can see Sam.


When we set up new users like this, a very important thing to do, is to test.

03:10 Let’s logout and login as Sam and test.


But the problem is - what happens if Sam was a real user and he decides to change his password.


We can not just randomly change other people’s password when we need to test their accounts.

03:23 That’s not ethical.
03:25 There is a fantastic module at drupal.org/project/masquerade.
03:31 The Masquerade module allows us to do exactly what it says - masquerade as somebody else.


We can masquerade as the Summer Intern to find out if we have set their permissions correctly.

03:43 I have already installed Masquerade module in my machine.


Please install it in your machine also.


You may refer to the tutorial “Adding functionalities using Modules” for installing new modules.


For your convenience the Masquerade module is provided in the Code Files link in the webpage of this tutorial.


Please download and install it.

Screenshot Once it is installed, you can see a new link Unmasquerade in the login area.
Screenshot To use the Masquerade, go to the People page.


Click on the Edit drop down of the user Sam and select Masquerade as.

04:00 Notice that as soon as we Masquerade as Sam, the toolbars are gone.


This is because the role of the user Sam does not have permissions to use administrator toolbars.


When we click on Add content, the only thing we are able to create is an event.


So far so good.

04:20 If we click on Our Drupal Manual and then on Installing Drupal, we can’t edit. There are no tabs.


Same thing if we go to the Forums.

04:30 And once again we can not edit.


We are able to leave a comment. But it won’t be automatically approved.

04:38 Once again, we can click on an event but we are not able to edit it or delete it.
04:50 It looks like our permissions are right.
screenshot Now go back to the administrator role by clicking on Unmasquerade link.
With this we come to the end of this tutorial.
Slide 5:

Summary


Let us summarize.


In this tutorial we have learnt about

  • People Management and
  • Adding a new user


Slide 6:

Acknowledgement


This video is
  • adapted from Acquia and OSTraining
  • and revised by Spoken Tutorial Project, IIT Bombay.


Slide 7:

Acknowledgement


The video at this link summarises the Spoken Tutorial project.


Pls download and watch it.

Slide 8:

Spoken Tutorial Workshops


The Spoken Tutorial Project Team conducts workshops and gives certificates.


For more details, please write to us.

Slide 9:

Acknowledgement


Spoken Tutorial Project is funded by
  • NMEICT, Ministry of Human Resource Development and
  • NVLI, Ministry of Culture

Government of India.

This is Ameesha Bhorkhade signing off.


Thanks for joining.

Contributors and Content Editors

Nancyvarkey, Priyacst